Commit d83bfac7 authored by duanjinfei's avatar duanjinfei

add Makefile

parent 6e28baeb
......@@ -80,7 +80,9 @@ func StartMonitor() {
select {
case <-ticker.C:
log.Info("Monitoring node manager client thread start......")
log.WithField("usedNodeManagerClient", usedNodeManagerClient).Info("Monitoring node manager client thread")
for _, client := range usedNodeManagerClient {
log.WithField("Endpoint", client.Endpoint).WithField("LastHeartTime", client.LastHeartTime).WithField("Is Del", client.IsDel).WithField("Status", client.Status).Info("Monitoring node manager client thread")
}
for _, managerClient := range usedNodeManagerClient {
if managerClient.GetStatus() && !managerClient.IsDel {
sub := time.Now().Sub(managerClient.GetLastHeartTime()).Seconds()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment