add additional logging messages

This commit is contained in:
Bradley Cicenas 2017-06-10 09:36:34 -03:00
parent 446708e456
commit 53b612ab07
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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()