Browse Source

print log to stdout instead of stderr (#1042)

pull/1060/head
aler9 3 years ago
parent
commit
ea13509411
  1. 2
      internal/logger/logger.go

2
internal/logger/logger.go

@ -186,7 +186,7 @@ func (lh *Logger) Log(level Level, format string, args ...interface{}) { @@ -186,7 +186,7 @@ func (lh *Logger) Log(level Level, format string, args ...interface{}) {
writeTime(&lh.stdoutBuffer, true)
writeLevel(&lh.stdoutBuffer, level, true)
writeContent(&lh.stdoutBuffer, format, args)
print(lh.stdoutBuffer.String())
os.Stdout.Write(lh.stdoutBuffer.Bytes())
}
if _, ok := lh.destinations[DestinationFile]; ok {

Loading…
Cancel
Save