Merge pull request #1335 from Blockdaemon/r3-nyet-fix-1333-JSON-logging-PR1

Log blockEpoch and blockNumber as Uint64 not Str
pull/1341/head
Leo Chen 5 years ago committed by GitHub
commit f150b4018e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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