From 1e8f3788445f62b416bb01b3451ba71a2a3aa627 Mon Sep 17 00:00:00 2001 From: zarazaex69 Date: Wed, 13 May 2026 22:35:59 +0300 Subject: [PATCH] fix(logger): skip logging for "srtp" scope --- internal/logger/logger.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/logger/logger.go b/internal/logger/logger.go index b310b0e..2c7fb62 100644 --- a/internal/logger/logger.go +++ b/internal/logger/logger.go @@ -114,11 +114,17 @@ func (l *PionLeveledLogger) Debugf(format string, args ...any) { // Info logs an info message. func (l *PionLeveledLogger) Info(msg string) { + if l.scope == "srtp" { + return + } log.Printf("[%s] INFO: %s", l.scope, msg) } // Infof logs a formatted info message. func (l *PionLeveledLogger) Infof(format string, args ...any) { + if l.scope == "srtp" { + return + } log.Printf("[%s] INFO: %s", l.scope, fmt.Sprintf(format, args...)) }