Log blockEpoch and blockNumber as Uint64 not Str

pull/1335/head
Nye Liu 5 years ago
parent aaa7e00902
commit cc638a878f
  1. 4
      core/types/block.go

@ -123,8 +123,8 @@ func (h *Header) Logger(logger *zerolog.Logger) *zerolog.Logger {
With().
Str("blockHash", h.Hash().Hex()).
Uint32("blockShard", h.ShardID).
Str("blockEpoch", h.Epoch.String()).
Str("blockNumber", h.Number.String()).
Uint64("blockEpoch", h.Epoch.Uint64()).
Uint64("blockNumber", h.Number.Uint64()).
Logger()
return &nlogger
}

Loading…
Cancel
Save