print log to stdout instead of stderr (#1042)
This commit is contained in:
parent
2a0567ab4a
commit
ea13509411
|
@ -186,7 +186,7 @@ func (lh *Logger) Log(level Level, format string, args ...interface{}) {
|
||||||
writeTime(&lh.stdoutBuffer, true)
|
writeTime(&lh.stdoutBuffer, true)
|
||||||
writeLevel(&lh.stdoutBuffer, level, true)
|
writeLevel(&lh.stdoutBuffer, level, true)
|
||||||
writeContent(&lh.stdoutBuffer, format, args)
|
writeContent(&lh.stdoutBuffer, format, args)
|
||||||
print(lh.stdoutBuffer.String())
|
os.Stdout.Write(lh.stdoutBuffer.Bytes())
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, ok := lh.destinations[DestinationFile]; ok {
|
if _, ok := lh.destinations[DestinationFile]; ok {
|
||||||
|
|
Loading…
Reference in New Issue