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