mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-14 18:30:02 +08:00
feat: prefer json.Marshaler over fmt.Stringer for JSON log output whe… (#5117)
This commit is contained in:
@@ -422,6 +422,8 @@ func processFieldValue(value any) any {
|
||||
times = append(times, fmt.Sprint(t))
|
||||
}
|
||||
return times
|
||||
case json.Marshaler:
|
||||
return val
|
||||
case fmt.Stringer:
|
||||
return encodeStringer(val)
|
||||
case []fmt.Stringer:
|
||||
|
||||
Reference in New Issue
Block a user