This commit is contained in:
Leonid Bugaev
2017-02-05 17:26:44 +03:00
4 changed files with 5 additions and 4 deletions
-2
View File
@@ -74,10 +74,8 @@ func NewFileOutput(pathTemplate string, config *FileOutputConfig) *FileOutput {
if o.closed {
break
}
o.mu.Lock()
o.updateName()
o.flush()
o.mu.Unlock()
}
}()