Tidy up - removed unnecessary fmt.Print

master
Sean Murphy 6 years ago
parent 3133ba42f0
commit 0856d6c6ae
  1. 3
      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... // 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(1) is one level up the call stack - 0 identifies the caller of
// Caller which is this function... // Caller which is this function...
callingStr := "[Unknown calling function]" callingStr := "[Unknown calling function]"
@ -63,7 +63,6 @@ func (l *logStream) Printf(format string, a ...interface{}) {
if callerValid { if callerValid {
callingStr = fn + ":" + strconv.Itoa(lineNum) callingStr = fn + ":" + strconv.Itoa(lineNum)
} }
fmt.Println("Calling str = ", callingStr)
if l.s == nil { if l.s == nil {
fmt.Print(callingStr, " ", logMessage) fmt.Print(callingStr, " ", logMessage)

Loading…
Cancel
Save