mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 15:04:36 +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, ",") + "]"
|
||||
case error:
|
||||
return r.Error()
|
||||
case time.Time:
|
||||
return r.Format(time.RFC3339)
|
||||
}
|
||||
|
||||
rv := reflect.ValueOf(v)
|
||||
|
Reference in New Issue
Block a user