Commit e61aef19 authored by vicotor's avatar vicotor

add log

parent 94ebd7ed
......@@ -382,7 +382,10 @@ func (n *Node) PopWorker(ctx context.Context, rdb *redis.Client, task *odysseus.
log.WithError(err).Error("get worker status failed")
continue
}
log.WithField("managerList", managerList).Debug("get worker status")
log.WithFields(log.Fields{
"managerList": managerList,
"statuskey": workerStatusKey(addr, nonce),
}).Debug("get worker status")
if len(managerList) == 0 {
continue
}
......
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