Skip to content

Commit a6198da

Browse files
committed
make big.Int/uint256.Int nil value be formatted as 'nil', not '<nil>'
1 parent a86ccc4 commit a6198da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

log/handler.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ func builtinReplace(_ []string, attr slog.Attr) slog.Attr {
188188
attr = slog.Any(attr.Key, v.Format(timeFormat))
189189
case *big.Int:
190190
if v == nil {
191-
attr.Value = slog.StringValue("<nil>")
191+
attr.Value = slog.StringValue("nil")
192192
} else {
193193
attr.Value = slog.StringValue(v.String())
194194
}
195195
case *uint256.Int:
196196
if v == nil {
197-
attr.Value = slog.StringValue("<nil>")
197+
attr.Value = slog.StringValue("nil")
198198
} else {
199199
attr.Value = slog.StringValue(v.Dec())
200200
}

0 commit comments

Comments
 (0)