From 474ca516c9bedc7784864c502e661d8a125639ef Mon Sep 17 00:00:00 2001 From: sukun Date: Mon, 9 Sep 2024 19:27:39 +0530 Subject: [PATCH] Revert "webrtc: reduce loglevel for pion logs (#2915)" This reverts commit 285123a79793e619400388a875832621dee13c29. --- p2p/transport/webrtc/logger.go | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/p2p/transport/webrtc/logger.go b/p2p/transport/webrtc/logger.go index ebe5fa309f..ac9fab7672 100644 --- a/p2p/transport/webrtc/logger.go +++ b/p2p/transport/webrtc/logger.go @@ -12,8 +12,6 @@ var pionLog = logging.Logger("webrtc-transport-pion") // pionLogger wraps the StandardLogger interface to provide a LeveledLogger interface // as expected by pion -// Pion logs are too noisy and have invalid log levels. pionLogger downgrades all the -// logs to debug type pionLogger struct { logging.StandardLogger } @@ -27,32 +25,20 @@ func (l pionLogger) Debug(s string) { } func (l pionLogger) Error(s string) { - l.StandardLogger.Debug(s) -} - -func (l pionLogger) Errorf(s string, args ...interface{}) { - l.StandardLogger.Debugf(s, args...) + l.StandardLogger.Error(s) } func (l pionLogger) Info(s string) { - l.StandardLogger.Debug(s) -} - -func (l pionLogger) Infof(s string, args ...interface{}) { - l.StandardLogger.Debugf(s, args...) + l.StandardLogger.Info(s) } - func (l pionLogger) Warn(s string) { - l.StandardLogger.Debug(s) -} - -func (l pionLogger) Warnf(s string, args ...interface{}) { - l.StandardLogger.Debugf(s, args...) + l.StandardLogger.Warn(s) } func (l pionLogger) Trace(s string) { l.StandardLogger.Debug(s) } + func (l pionLogger) Tracef(s string, args ...interface{}) { l.StandardLogger.Debugf(s, args...) }