From d6ab77fcd4c52800dcdcf8f73ca277bd36e918a3 Mon Sep 17 00:00:00 2001 From: sukun Date: Wed, 14 Aug 2024 19:53:30 +0530 Subject: [PATCH] override *f methods to debug --- p2p/transport/webrtc/logger.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/p2p/transport/webrtc/logger.go b/p2p/transport/webrtc/logger.go index ab3ca22dcd..ebe5fa309f 100644 --- a/p2p/transport/webrtc/logger.go +++ b/p2p/transport/webrtc/logger.go @@ -30,17 +30,29 @@ func (l pionLogger) Error(s string) { l.StandardLogger.Debug(s) } +func (l pionLogger) Errorf(s string, args ...interface{}) { + l.StandardLogger.Debugf(s, args...) +} + func (l pionLogger) Info(s string) { l.StandardLogger.Debug(s) } + +func (l pionLogger) Infof(s string, args ...interface{}) { + l.StandardLogger.Debugf(s, args...) +} + func (l pionLogger) Warn(s string) { l.StandardLogger.Debug(s) } +func (l pionLogger) Warnf(s string, args ...interface{}) { + l.StandardLogger.Debugf(s, args...) +} + func (l pionLogger) Trace(s string) { l.StandardLogger.Debug(s) } - func (l pionLogger) Tracef(s string, args ...interface{}) { l.StandardLogger.Debugf(s, args...) }