From 0856d6c6aea85f1ddc453c5bd6f81ca3b2a4f16f Mon Sep 17 00:00:00 2001 From: Sean Murphy Date: Sat, 15 Dec 2018 12:01:24 +0100 Subject: [PATCH] Tidy up - removed unnecessary fmt.Print --- logging.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/logging.go b/logging.go index e6aa4f5..d45d2a2 100644 --- a/logging.go +++ b/logging.go @@ -55,7 +55,7 @@ func (l *logStream) Printf(format string, a ...interface{}) { } // if no specific logger is configured for this logstrea, write to stdout... - logMessage := fmt.Sprintf(format, a) + logMessage := fmt.Sprintf(format, a...) // Caller(1) is one level up the call stack - 0 identifies the caller of // Caller which is this function... callingStr := "[Unknown calling function]" @@ -63,7 +63,6 @@ func (l *logStream) Printf(format string, a ...interface{}) { if callerValid { callingStr = fn + ":" + strconv.Itoa(lineNum) } - fmt.Println("Calling str = ", callingStr) if l.s == nil { fmt.Print(callingStr, " ", logMessage)