Fixed logger softlock

This commit is contained in:
bytedream 2022-03-22 13:10:42 +01:00
parent 83c9ae4927
commit c1b3cd7b0a
2 changed files with 5 additions and 2 deletions

View file

@ -178,6 +178,9 @@ func (l *logger) SetProgress(format string, v ...interface{}) {
func (l *logger) StopProgress(format string, v ...interface{}) {
if out.InfoLog.Writer() == io.Discard {
return
} else if l.devView {
l.Debug(format, v...)
return
}
l.lock.Lock()