From 544d9402f08541dd885dd24d29bc9410d07605fb Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Mon, 8 Aug 2016 18:09:14 +0300 Subject: [PATCH] Disable forced flush --- output_file.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/output_file.go b/output_file.go index 9156ba2..a50b905 100644 --- a/output_file.go +++ b/output_file.go @@ -53,14 +53,6 @@ func NewFileOutput(pathTemplate string, config *FileOutputConfig) *FileOutput { o.config = config o.updateName() - // Force flushing every minute - go func() { - for { - time.Sleep(o.config.flushInterval) - o.flush() - } - }() - go func() { for { time.Sleep(time.Second)