From f88004c62b051125810979f35a54735ab961ede3 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Wed, 7 Aug 2019 13:50:21 -0700 Subject: [PATCH] Ignore context cancelled error in docker_log (#6221) --- plugins/inputs/docker_log/docker_log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/docker_log/docker_log.go b/plugins/inputs/docker_log/docker_log.go index f2b5b5148..6a675219f 100644 --- a/plugins/inputs/docker_log/docker_log.go +++ b/plugins/inputs/docker_log/docker_log.go @@ -227,7 +227,7 @@ func (d *DockerLogs) Gather(acc telegraf.Accumulator) error { defer d.removeFromContainerList(container.ID) err = d.tailContainerLogs(ctx, acc, container, containerName) - if err != nil { + if err != nil && err != context.Canceled { acc.AddError(err) } }(container)