Skip to content

Commit cae2f11

Browse files
committed
[core] Correctly stringify incoming fields for InfoLogger
1 parent 131ba69 commit cae2f11

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

common/logger/infologger/hook.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,8 @@ func (h *Hook) Fire(e *logrus.Entry) error {
9494
vStr = string(v.([]byte)[:])
9595
case fmt.Stringer:
9696
vStr = v.(fmt.Stringer).String()
97-
case int:
98-
vStr = strconv.Itoa(v.(int))
9997
default:
100-
vStr = "VALUE_NOT_SERIALIZABLE"
98+
vStr = fmt.Sprintf("%v", v)
10199
}
102100

103101
if _, ok := Fields[k]; ok {

0 commit comments

Comments
 (0)