Commit ffb41231 authored by Jeromy's avatar Jeromy
Browse files

starting to move important events over to EventBegin/Done

parent b9011990
...@@ -81,7 +81,9 @@ func (s *secureSession) handshake(ctx context.Context, insecure io.ReadWriter) e ...@@ -81,7 +81,9 @@ func (s *secureSession) handshake(ctx context.Context, insecure io.ReadWriter) e
} }
log.Debugf("handshake: %s <--start--> %s", s.localPeer, s.remotePeer) log.Debugf("handshake: %s <--start--> %s", s.localPeer, s.remotePeer)
log.Event(ctx, "secureHandshakeStart", s.localPeer) e := log.EventBegin(ctx, "secureHandshake", s.localPeer)
defer e.Done()
s.local.permanentPubKey = s.localKey.GetPublic() s.local.permanentPubKey = s.localKey.GetPublic()
myPubKeyBytes, err := s.local.permanentPubKey.Bytes() myPubKeyBytes, err := s.local.permanentPubKey.Bytes()
if err != nil { if err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment