Skip to content

Commit

Permalink
Disable forced flush
Browse files Browse the repository at this point in the history
  • Loading branch information
buger committed Aug 8, 2016
1 parent 25ded56 commit 544d940
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions output_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 544d940

Please sign in to comment.