Skip to content

Commit

Permalink
Ignore context canceled error when reloading/stopping agent
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson committed May 31, 2019
1 parent 0ca8ea1 commit 3d7a718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/telegraf/telegraf.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func reloadLoop(
}()

err := runAgent(ctx, inputFilters, outputFilters)
if err != nil {
if err != nil && err != context.Canceled {
log.Fatalf("E! [telegraf] Error running agent: %v", err)
}
}
Expand Down

0 comments on commit 3d7a718

Please sign in to comment.