mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
add additional logging messages
This commit is contained in:
parent
446708e456
commit
53b612ab07
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user