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(). With().
Str("blockHash", h.Hash().Hex()). Str("blockHash", h.Hash().Hex()).
Uint32("blockShard", h.ShardID). Uint32("blockShard", h.ShardID).
Str("blockEpoch", h.Epoch.String()). Uint64("blockEpoch", h.Epoch.Uint64()).
Str("blockNumber", h.Number.String()). Uint64("blockNumber", h.Number.Uint64()).
Logger() Logger()
return &nlogger return &nlogger
} }

Loading…
Cancel
Save