From 6a4888212577d656a1bdbb92ef727e8150d1c5ea Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Sun, 5 Feb 2017 17:26:22 +0300 Subject: [PATCH] Fix infinite lock at file output --- output_file.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/output_file.go b/output_file.go index 915711c..209d563 100644 --- a/output_file.go +++ b/output_file.go @@ -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() } }()