From 4ff717e881b8527dbe81a10694a9df006d2e941e Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Mon, 14 Oct 2019 15:51:51 +0200 Subject: [PATCH] Make the `mined block in the past` structured License: MIT Signed-off-by: Jakub Sztandera --- miner/miner.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miner/miner.go b/miner/miner.go index 65b1d69e0..be9025a42 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -179,7 +179,8 @@ func (m *Miner) mine(ctx context.Context) { if time.Now().Before(btime) { time.Sleep(time.Until(btime)) } else { - log.Warnf("Mined block in the past: b.T: %s, T: %s, dT: %s", btime, time.Now(), time.Now().Sub(btime)) + log.Warnw("mined block in the past", "block-time", btime, + "time", time.Now(), "duration", time.Now().Sub(btime)) } if err := m.api.ChainSubmitBlock(ctx, b); err != nil {