diff options
author | Péter Dimitrov <[email protected]> | 2018-06-04 17:14:53 +0200 |
---|---|---|
committer | Péter Dimitrov <[email protected]> | 2018-06-20 15:18:37 +0200 |
commit | eae3952b4af6c3afff39dd0dd5e6b72291566b4a (patch) | |
tree | 16a79afaa1b10b427c2d122ac51a4d0868eb3476 /lib/ssl/src/tls_handshake.erl | |
parent | 6e0ee7a598c892b6db3282bd719583b68f2d8a89 (diff) | |
download | otp-eae3952b4af6c3afff39dd0dd5e6b72291566b4a.tar.gz otp-eae3952b4af6c3afff39dd0dd5e6b72291566b4a.tar.bz2 otp-eae3952b4af6c3afff39dd0dd5e6b72291566b4a.zip |
ssl: Add logging for TLS Handshake Protocol
- Add logging for TLS Handshake messages.
- Remove version from the input map used in format/2.
Change-Id: I1a8a3dbe5854d3b25cca33e9a6634ac9a53d5867
Diffstat (limited to 'lib/ssl/src/tls_handshake.erl')
-rw-r--r-- | lib/ssl/src/tls_handshake.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ssl/src/tls_handshake.erl b/lib/ssl/src/tls_handshake.erl index f1eecb2875..42b457d24a 100644 --- a/lib/ssl/src/tls_handshake.erl +++ b/lib/ssl/src/tls_handshake.erl @@ -272,6 +272,11 @@ get_tls_handshake_aux(Version, <<?BYTE(Type), ?UINT24(Length), Raw = <<?BYTE(Type), ?UINT24(Length), Body/binary>>, try decode_handshake(Version, Type, Body) of Handshake -> + Report = #{direction => inbound, + protocol => 'handshake', + message => Handshake, + version => Version}, + logger:info(Report, #{domain => [beam,erlang,otp,ssl,handshake]}), get_tls_handshake_aux(Version, Rest, Opts, [{Handshake,Raw} | Acc]) catch _:_ -> |