|
|
@@ -195,8 +195,12 @@ func UpdateContainerState(name string, containerState structs.ContainerState) {
|
|
|
contMutex.Lock()
|
|
|
defer contMutex.Unlock()
|
|
|
GSContainers[name] = containerState
|
|
|
- res, _ := json.Marshal(containerState)
|
|
|
- Logger.Info(fmt.Sprintf("%s:%s", name, string(res)))
|
|
|
+ logMsg := "<hidden>"
|
|
|
+ if DebugMode {
|
|
|
+ res, _ := json.Marshal(containerState)
|
|
|
+ logMsg = string(res)
|
|
|
+ }
|
|
|
+ Logger.Info(fmt.Sprintf("%s state:%s", name, logMsg))
|
|
|
}
|
|
|
|
|
|
// get the current container state
|