mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-05-26 07:08:11 +00:00
fix(logger): skip logging for "srtp" scope
This commit is contained in:
@@ -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...))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user