Fix infinite lock at file output

This commit is contained in:
Leonid Bugaev
2017-02-05 17:26:22 +03:00
parent bf1c67c5a1
commit 6a48882125
-2
View File
@@ -69,10 +69,8 @@ func NewFileOutput(pathTemplate string, config *FileOutputConfig) *FileOutput {
if o.closed {
break
}
o.mu.Lock()
o.updateName()
o.flush()
o.mu.Unlock()
}
}()