mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 23:34:38 +03:00
when logging, format timestamps more compactly, without needing quoting
This commit is contained in:
@ -372,6 +372,8 @@ func stringValue(iscid, nested bool, v any) string {
|
|||||||
return "[" + strings.Join(r, ",") + "]"
|
return "[" + strings.Join(r, ",") + "]"
|
||||||
case error:
|
case error:
|
||||||
return r.Error()
|
return r.Error()
|
||||||
|
case time.Time:
|
||||||
|
return r.Format(time.RFC3339)
|
||||||
}
|
}
|
||||||
|
|
||||||
rv := reflect.ValueOf(v)
|
rv := reflect.ValueOf(v)
|
||||||
|
Reference in New Issue
Block a user