aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/dtls_connection.erl
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2018-05-16 12:01:22 +0200
committerPéter Dimitrov <[email protected]>2018-06-20 15:18:37 +0200
commitaa09b1326a0e88937a3e5c0162bed4cd7d73b4bd (patch)
tree98ea3e9e28de7a4842f0a6378ce1830ec67e7175 /lib/ssl/src/dtls_connection.erl
parentdeaadf9e82cee43a3bbc5185e811153f455b9669 (diff)
downloadotp-aa09b1326a0e88937a3e5c0162bed4cd7d73b4bd.tar.gz
otp-aa09b1326a0e88937a3e5c0162bed4cd7d73b4bd.tar.bz2
otp-aa09b1326a0e88937a3e5c0162bed4cd7d73b4bd.zip
ssl: Use logger API instead of legacy error_logger
Change-Id: I04cb8e4c09b05fc9d7ead0dfae0d83286decdb74
Diffstat (limited to 'lib/ssl/src/dtls_connection.erl')
-rw-r--r--lib/ssl/src/dtls_connection.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl
index 53b46542e7..610ab9a51c 100644
--- a/lib/ssl/src/dtls_connection.erl
+++ b/lib/ssl/src/dtls_connection.erl
@@ -32,6 +32,7 @@
-include("ssl_internal.hrl").
-include("ssl_srp.hrl").
-include_lib("public_key/include/public_key.hrl").
+-include_lib("kernel/include/logger.hrl").
%% Internal application API
@@ -1125,7 +1126,7 @@ is_ignore_alert(_) ->
log_ignore_alert(true, StateName, Alert, Role) ->
Txt = ssl_alert:alert_txt(Alert),
- error_logger:format("DTLS over UDP ~p: In state ~p ignored to send ALERT ~s as DoS-attack mitigation \n",
- [Role, StateName, Txt]);
+ ?LOG_ERROR("DTLS over UDP ~p: In state ~p ignored to send ALERT ~s as DoS-attack mitigation \n",
+ [Role, StateName, Txt]);
log_ignore_alert(false, _, _,_) ->
ok.