|
@@ -121,6 +121,9 @@ func UpdateContainerState(name string, containerState structs.ContainerState) {
|
|
|
contMutex.Lock()
|
|
contMutex.Lock()
|
|
|
defer contMutex.Unlock()
|
|
defer contMutex.Unlock()
|
|
|
GSContainers[name] = containerState
|
|
GSContainers[name] = containerState
|
|
|
|
|
+ //debug
|
|
|
|
|
+ res2B, _ := json.Marshal(containerState)
|
|
|
|
|
+ logger.Info(string(res2B))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// get the current container state
|
|
// get the current container state
|