From cc638a878f28f56b80fd19d1b1f2797ac7c4bac8 Mon Sep 17 00:00:00 2001 From: Nye Liu Date: Sun, 11 Aug 2019 16:08:25 +0000 Subject: [PATCH] Log blockEpoch and blockNumber as Uint64 not Str --- core/types/block.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/types/block.go b/core/types/block.go index 3026b1c5d..6a16ca535 100644 --- a/core/types/block.go +++ b/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 }