diff --git a/logs/log.go b/logs/log.go index 4349e8a5..3315f946 100644 --- a/logs/log.go +++ b/logs/log.go @@ -193,7 +193,10 @@ func (bl *BeeLogger) startLogger() { select { case bm := <-bl.msg: for _, l := range bl.outputs { - l.WriteMsg(bm.msg, bm.level) + err := l.WriteMsg(bm.msg, bm.level) + if err != nil { + fmt.Println("ERROR, unable to WriteMsg:", err) + } } } } @@ -281,7 +284,10 @@ func (bl *BeeLogger) Close() { if len(bl.msg) > 0 { bm := <-bl.msg for _, l := range bl.outputs { - l.WriteMsg(bm.msg, bm.level) + err := l.WriteMsg(bm.msg, bm.level) + if err != nil { + fmt.Println("ERROR, unable to WriteMsg (while closing logger):", err) + } } } else { break