From c5cd6fe9228adeee2eb70428a49477114b68670a Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Tue, 14 Nov 2023 22:05:58 +0800 Subject: [PATCH] format nil big.Int values as 'nil' instead of '' --- log/format.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log/format.go b/log/format.go index e156e4356e..1499570e9b 100644 --- a/log/format.go +++ b/log/format.go @@ -166,7 +166,7 @@ func FormatLogfmtValue(value interface{}, term bool) string { // Big ints get consumed by the Stringer clause, so we need to handle // them earlier on. if v == nil { - return "" + return "nil" } return formatLogfmtBigInt(v) @@ -174,7 +174,7 @@ func FormatLogfmtValue(value interface{}, term bool) string { // Uint256s get consumed by the Stringer clause, so we need to handle // them earlier on. if v == nil { - return "" + return "nil" } return formatLogfmtUint256(v) }