mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
[ADD] add debug log output
This commit is contained in:
parent
3be3b59b65
commit
3fd1014ffb
@ -316,10 +316,13 @@ func (n *Cluster) handleNodeStatus(v *client.HostNode) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
logrus.Info("start delete.......")
|
||||||
v.DeleteCondition("OutOfDisk")
|
v.DeleteCondition("OutOfDisk")
|
||||||
|
logrus.Info("Conditions...", v.NodeStatus.Conditions)
|
||||||
v.DeleteCondition("MemoryPressure")
|
v.DeleteCondition("MemoryPressure")
|
||||||
|
logrus.Info("Conditions...", v.NodeStatus.Conditions)
|
||||||
v.DeleteCondition("DiskPressure")
|
v.DeleteCondition("DiskPressure")
|
||||||
|
logrus.Info("Conditions...", v.NodeStatus.Conditions)
|
||||||
logrus.Debugf("delete condiction type OutOfDisk and MemoryPressure and DiskPressure")
|
logrus.Debugf("delete condiction type OutOfDisk and MemoryPressure and DiskPressure")
|
||||||
|
|
||||||
//var haveready bool
|
//var haveready bool
|
||||||
|
@ -226,6 +226,7 @@ func (n *HostNode) DeleteCondition(types ...NodeConditionType) {
|
|||||||
for _, t := range types {
|
for _, t := range types {
|
||||||
for i, c := range n.NodeStatus.Conditions {
|
for i, c := range n.NodeStatus.Conditions {
|
||||||
if c.Type.Compare(t) {
|
if c.Type.Compare(t) {
|
||||||
|
logrus.Debugf(string(c.Type))
|
||||||
n.NodeStatus.Conditions = append(n.NodeStatus.Conditions[:i], n.NodeStatus.Conditions[i+1:]...)
|
n.NodeStatus.Conditions = append(n.NodeStatus.Conditions[:i], n.NodeStatus.Conditions[i+1:]...)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user