Ignore context canceled error when reloading/stopping agent

This commit is contained in:
Daniel Nelson
2019-05-31 16:50:44 -07:00
parent 0ca8ea1724
commit 3d7a71889d

View File

@@ -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)
}
}