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
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155
1 changed files with 1 additions and 1 deletions

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