diff options
author | Péter Dimitrov <[email protected]> | 2018-06-15 16:39:15 +0200 |
---|---|---|
committer | Péter Dimitrov <[email protected]> | 2018-06-20 15:18:37 +0200 |
commit | e94c5fad7304aa7b5cd15646a1fd246aae460a3f (patch) | |
tree | 742e05aad84dfeeaced4b6fcbab5b2116a70c9f0 /lib/ssl/src/tls_record.erl | |
parent | eae3952b4af6c3afff39dd0dd5e6b72291566b4a (diff) | |
download | otp-e94c5fad7304aa7b5cd15646a1fd246aae460a3f.tar.gz otp-e94c5fad7304aa7b5cd15646a1fd246aae460a3f.tar.bz2 otp-e94c5fad7304aa7b5cd15646a1fd246aae460a3f.zip |
ssl: Update domain filter, use log macros
Change-Id: Id52990a105c81373c7c6034df9a2675f9d0e429a
Diffstat (limited to 'lib/ssl/src/tls_record.erl')
-rw-r--r-- | lib/ssl/src/tls_record.erl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/ssl/src/tls_record.erl b/lib/ssl/src/tls_record.erl index 05c5d703a9..b744555753 100644 --- a/lib/ssl/src/tls_record.erl +++ b/lib/ssl/src/tls_record.erl @@ -30,6 +30,7 @@ -include("ssl_alert.hrl"). -include("tls_handshake.hrl"). -include("ssl_cipher.hrl"). +-include_lib("kernel/include/logger.hrl"). %% Handling of incoming data -export([get_tls_records/3, init_connection_states/2]). @@ -405,7 +406,7 @@ get_tls_records_aux(<<?BYTE(?APPLICATION_DATA),?BYTE(MajVer),?BYTE(MinVer), Report = #{direction => inbound, protocol => 'tls_record', message => [RawTLSRecord]}, - logger:info(Report, #{domain => [beam,erlang,otp,ssl,tls_record]}), + ?LOG_DEBUG(Report, #{domain => [otp,ssl,tls_record]}), get_tls_records_aux(Rest, [#ssl_tls{type = ?APPLICATION_DATA, version = {MajVer, MinVer}, fragment = Data} | Acc]); @@ -417,7 +418,7 @@ get_tls_records_aux(<<?BYTE(?HANDSHAKE),?BYTE(MajVer),?BYTE(MinVer), Report = #{direction => inbound, protocol => 'tls_record', message => [RawTLSRecord]}, - logger:info(Report, #{domain => [beam,erlang,otp,ssl,tls_record]}), + ?LOG_DEBUG(Report, #{domain => [otp,ssl,tls_record]}), get_tls_records_aux(Rest, [#ssl_tls{type = ?HANDSHAKE, version = {MajVer, MinVer}, fragment = Data} | Acc]); @@ -429,7 +430,7 @@ get_tls_records_aux(<<?BYTE(?ALERT),?BYTE(MajVer),?BYTE(MinVer), Report = #{direction => inbound, protocol => 'tls_record', message => [RawTLSRecord]}, - logger:info(Report, #{domain => [beam,erlang,otp,ssl,tls_record]}), + ?LOG_DEBUG(Report, #{domain => [otp,ssl,tls_record]}), get_tls_records_aux(Rest, [#ssl_tls{type = ?ALERT, version = {MajVer, MinVer}, fragment = Data} | Acc]); @@ -441,7 +442,7 @@ get_tls_records_aux(<<?BYTE(?CHANGE_CIPHER_SPEC),?BYTE(MajVer),?BYTE(MinVer), Report = #{direction => inbound, protocol => 'tls_record', message => [RawTLSRecord]}, - logger:info(Report, #{domain => [beam,erlang,otp,ssl,tls_record]}), + ?LOG_DEBUG(Report, #{domain => [otp,ssl,tls_record]}), get_tls_records_aux(Rest, [#ssl_tls{type = ?CHANGE_CIPHER_SPEC, version = {MajVer, MinVer}, fragment = Data} | Acc]); |