Ignore context canceled error when reloading/stopping agent
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user