Disable forced flush

This commit is contained in:
Leonid Bugaev
2016-08-08 18:09:14 +03:00
parent 25ded56a59
commit 544d9402f0
-8
View File
@@ -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)