aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/tls_connection.erl
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2018-06-15 16:39:15 +0200
committerPéter Dimitrov <[email protected]>2018-06-20 15:18:37 +0200
commite94c5fad7304aa7b5cd15646a1fd246aae460a3f (patch)
tree742e05aad84dfeeaced4b6fcbab5b2116a70c9f0 /lib/ssl/src/tls_connection.erl
parenteae3952b4af6c3afff39dd0dd5e6b72291566b4a (diff)
downloadotp-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_connection.erl')
-rw-r--r--lib/ssl/src/tls_connection.erl15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/ssl/src/tls_connection.erl b/lib/ssl/src/tls_connection.erl
index f1291ec7b4..071f464851 100644
--- a/lib/ssl/src/tls_connection.erl
+++ b/lib/ssl/src/tls_connection.erl
@@ -38,7 +38,8 @@
-include("ssl_api.hrl").
-include("ssl_internal.hrl").
-include("ssl_srp.hrl").
--include_lib("public_key/include/public_key.hrl").
+-include_lib("public_key/include/public_key.hrl").
+-include_lib("kernel/include/logger.hrl").
%% Internal application API
@@ -274,8 +275,8 @@ queue_handshake(Handshake, #state{negotiated_version = Version,
HandshakeMsg = #{direction => outbound,
protocol => 'handshake',
message => Handshake},
- logger:info(HandshakeMsg, #{domain => [beam,erlang,otp,ssl,handshake]}),
- logger:info(Report, #{domain => [beam,erlang,otp,ssl,tls_record]}),
+ ?LOG_DEBUG(HandshakeMsg, #{domain => [otp,ssl,handshake]}),
+ ?LOG_DEBUG(Report, #{domain => [otp,ssl,tls_record]}),
State0#state{connection_states = ConnectionStates,
tls_handshake_history = Hist,
flight_buffer = Flight0 ++ [BinHandshake]}.
@@ -294,7 +295,7 @@ queue_change_cipher(Msg, #state{negotiated_version = Version,
Report = #{direction => outbound,
protocol => 'tls_record',
message => BinChangeCipher},
- logger:info(Report, #{domain => [beam,erlang,otp,ssl,tls_record]}),
+ ?LOG_DEBUG(Report, #{domain => [otp,ssl,tls_record]}),
State0#state{connection_states = ConnectionStates,
flight_buffer = Flight0 ++ [BinChangeCipher]}.
@@ -330,7 +331,7 @@ send_alert(Alert, #state{negotiated_version = Version,
Report = #{direction => outbound,
protocol => 'tls_record',
message => BinMsg},
- logger:info(Report, #{domain => [beam,erlang,otp,ssl,tls_record]}),
+ ?LOG_DEBUG(Report, #{domain => [otp,ssl,tls_record]}),
State0#state{connection_states = ConnectionStates}.
@@ -440,8 +441,8 @@ init({call, From}, {start, Timeout},
HelloMsg = #{direction => outbound,
protocol => 'handshake',
message => Hello},
- logger:info(HelloMsg, #{domain => [beam,erlang,otp,ssl,handshake]}),
- logger:info(Report, #{domain => [beam,erlang,otp,ssl,tls_record]}),
+ ?LOG_DEBUG(HelloMsg, #{domain => [otp,ssl,handshake]}),
+ ?LOG_DEBUG(Report, #{domain => [otp,ssl,tls_record]}),
State1 = State0#state{connection_states = ConnectionStates,
negotiated_version = Version, %% Requested version
session =