fix(logger): skip logging for "srtp" scope

This commit is contained in:
zarazaex69
2026-05-13 22:35:59 +03:00
parent adf4b011b9
commit 1e8f378844

View File

@@ -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...))
}