remove panic for stdout error for package glog

This commit is contained in:
John
2020-06-15 22:57:27 +08:00
parent ca5f14c366
commit b83f1efde8

View File

@ -206,7 +206,7 @@ func (l *Logger) printToWriter(now time.Time, std io.Writer, buffer *bytes.Buffe
// Allow output to stdout?
if l.config.StdoutPrint {
if _, err := std.Write(buffer.Bytes()); err != nil {
panic(err)
intlog.Error(err)
}
}
} else {