Skip to content

Commit

Permalink
Log Pion trace level logs at Debug level.
Browse files Browse the repository at this point in the history
Trying to debug connectivity issues in a deploy.
Need Pion trace level logs to check ICE details (candidates, STUN
binding request/responses, etc.). So, log pion trace at Debugw instead
of ignoring it.
  • Loading branch information
boks1971 committed Sep 11, 2023
1 parent fc1aa19 commit b9916e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logger/pionlogger/logadapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ type logAdapter struct {
}

func (l *logAdapter) Trace(msg string) {
// ignore trace
l.logger.Debugw(msg)
}

func (l *logAdapter) Tracef(format string, args ...interface{}) {
// ignore trace
l.logger.Debugw(fmt.Sprintf(format, args...))
}

func (l *logAdapter) Debug(msg string) {
Expand Down

0 comments on commit b9916e6

Please sign in to comment.