From 1c8f4b3a355c464c16504f1b944007bbc47878f8 Mon Sep 17 00:00:00 2001 From: Bradley Cicenas Date: Tue, 28 Nov 2017 14:38:32 +0000 Subject: [PATCH] add logging for log reader start/stop --- connector/collector/docker_logs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/connector/collector/docker_logs.go b/connector/collector/docker_logs.go index f350d36..3f1e40f 100644 --- a/connector/collector/docker_logs.go +++ b/connector/collector/docker_logs.go @@ -58,6 +58,7 @@ func (l *DockerLogs) Stream() chan models.Log { if err != nil { log.Errorf("error reading container logs: %s", err) } + log.Infof("log reader stopped for container: %s", l.id) }() go func() { @@ -67,6 +68,7 @@ func (l *DockerLogs) Stream() chan models.Log { } }() + log.Infof("log reader started for container: %s", l.id) return logCh }