From ba34553d8dbb4da000a89b9ad96b9a6fd0df8788 Mon Sep 17 00:00:00 2001 From: Tamas Levai Date: Tue, 31 Dec 2024 13:42:49 +0100 Subject: [PATCH] fix: Remove trailing newlines from log messages --- lt_cred.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lt_cred.go b/lt_cred.go index 42466c38..bd3197f1 100644 --- a/lt_cred.go +++ b/lt_cred.go @@ -79,7 +79,7 @@ func LongTermTURNRESTAuthHandler(sharedSecret string, l logging.LeveledLogger) A l = logging.NewDefaultLoggerFactory().NewLogger("turn") } return func(username, realm string, srcAddr net.Addr) (key []byte, ok bool) { - l.Tracef("Authentication username=%q realm=%q srcAddr=%v\n", username, realm, srcAddr) + l.Tracef("Authentication username=%q realm=%q srcAddr=%v", username, realm, srcAddr) timestamp := strings.Split(username, ":")[0] t, err := strconv.Atoi(timestamp) if err != nil {