Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
boks1971 committed Nov 14, 2023
1 parent ee736f3 commit bf8e667
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ func (c *Conn) handshake(ctx context.Context, cfg *handshakeConfig, initialFligh
if s == handshakeFinished && !c.isHandshakeCompletedSuccessfully() {
c.setHandshakeCompletedSuccessfully()
close(done)
c.log.Trace("handshake completed successfully")
//c.log.Trace("handshake completed successfully")
}
}

Expand Down
2 changes: 1 addition & 1 deletion flight0handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func flight0Parse(_ context.Context, _ flightConn, state *State, cache *handshak
return 0, &alert.Alert{Level: alert.Fatal, Description: alert.InsufficientSecurity}, errServerNoMatchingSRTPProfile
}
state.srtpProtectionProfile = profile
cfg.log.Tracef("[handshake] flight0 setting srtp protection profile: %d", profile)
//cfg.log.Tracef("[handshake] flight0 setting srtp protection profile: %d", profile)
case *extension.UseExtendedMasterSecret:
if cfg.extendedMasterSecret != DisableExtendedMasterSecret {
state.extendedMasterSecret = true
Expand Down
2 changes: 1 addition & 1 deletion flight3handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func flight3Parse(ctx context.Context, c flightConn, state *State, cache *handsh
return 0, &alert.Alert{Level: alert.Fatal, Description: alert.IllegalParameter}, errClientNoMatchingSRTPProfile
}
state.srtpProtectionProfile = profile
cfg.log.Tracef("[handshake] flight3 setting srtp protection profile: %d", profile)
//cfg.log.Tracef("[handshake] flight3 setting srtp protection profile: %d", profile)
case *extension.UseExtendedMasterSecret:
if cfg.extendedMasterSecret != DisableExtendedMasterSecret {
state.extendedMasterSecret = true
Expand Down
2 changes: 1 addition & 1 deletion handshaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (s *handshakeFSM) Run(ctx context.Context, c flightConn, initialState hands
state, err = s.wait(ctx, c)
case handshakeFinished:
state, err = s.finish(ctx, c)
s.cfg.log.Tracef("[handshake:%s] finish returned state: %s, error: %+v", srvCliStr(s.state.isClient), state.String(), err)
//s.cfg.log.Tracef("[handshake:%s] finish returned state: %s, error: %+v", srvCliStr(s.state.isClient), state.String(), err)
default:
return errInvalidFSMTransition
}
Expand Down

0 comments on commit bf8e667

Please sign in to comment.