mlog: fix bug which caused the DefaultHandler to not ever call Flush
This commit is contained in:
parent
ee77656f39
commit
0ef6997f40
@ -240,7 +240,7 @@ func DefaultHandler() Handler {
|
|||||||
defer l.Unlock()
|
defer l.Unlock()
|
||||||
|
|
||||||
err := DefaultFormat(bw, msg)
|
err := DefaultFormat(bw, msg)
|
||||||
if err != nil {
|
if err == nil {
|
||||||
err = bw.Flush()
|
err = bw.Flush()
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user