mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
add additional logging messages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user