diff --git a/connector/runc.go b/connector/runc.go index 28db9d6..1ab4f4b 100644 --- a/connector/runc.go +++ b/connector/runc.go @@ -78,7 +78,6 @@ func (cm *Runc) GetLibc(id string) libcontainer.Container { // update a ctop container from libcontainer func (cm *Runc) refresh(id string) { - log.Debugf("refreshing container: %s", id) libc := cm.GetLibc(id) if libc == nil { return @@ -156,6 +155,7 @@ func (cm *Runc) MustGet(id string) *container.Container { cm.containers[id] = c cm.libContainers[id] = libc cm.lock.Unlock() + log.Debugf("saw new container: %s", id) } return c diff --git a/metrics/runc.go b/metrics/runc.go index b063314..25420e7 100644 --- a/metrics/runc.go +++ b/metrics/runc.go @@ -51,6 +51,7 @@ func (c *Runc) Stream() chan Metrics { func (c *Runc) run() { c.running = true defer close(c.stream) + log.Debugf("collector started for container: %s", c.id) for { stats, err := c.libc.Stats()