mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
log: format nil as <nil> by default
This commit is contained in:
parent
632a3f891f
commit
d2251afece
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ func FormatSlogValue(v slog.Value, term bool, tmp []byte) (result []byte) {
|
||||||
value = v.Any()
|
value = v.Any()
|
||||||
}
|
}
|
||||||
if value == nil {
|
if value == nil {
|
||||||
return []byte("nil")
|
return []byte("<nil>")
|
||||||
}
|
}
|
||||||
switch v := value.(type) {
|
switch v := value.(type) {
|
||||||
case *big.Int:
|
case *big.Int:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue