Commit 078bc23b authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

debug log

parent d9256ec7
...@@ -96,7 +96,11 @@ func (s *StateDB) IterAllObject() (objects []*validatorv1.MinerObject) { ...@@ -96,7 +96,11 @@ func (s *StateDB) IterAllObject() (objects []*validatorv1.MinerObject) {
log.WithError(err).Error("failed to unmarshal object, iter") log.WithError(err).Error("failed to unmarshal object, iter")
continue continue
} }
log.WithField("balance", object.Balance).Debug("iter miner object") log.WithFields(log.Fields{
"miner": object.Miner,
"balance": object.Balance,
"workload": object.Workload,
}).Debug("iter miner object")
objects = append(objects, object) objects = append(objects, object)
} }
return return
......
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