Ignore context canceled error when reloading/stopping agent
This commit is contained in:
parent
0ca8ea1724
commit
3d7a71889d
|
@ -103,7 +103,7 @@ func reloadLoop(
|
||||||
}()
|
}()
|
||||||
|
|
||||||
err := runAgent(ctx, inputFilters, outputFilters)
|
err := runAgent(ctx, inputFilters, outputFilters)
|
||||||
if err != nil {
|
if err != nil && err != context.Canceled {
|
||||||
log.Fatalf("E! [telegraf] Error running agent: %v", err)
|
log.Fatalf("E! [telegraf] Error running agent: %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue