mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 08:23:48 +03:00
when logging, format timestamps more compactly, without needing quoting
This commit is contained in:
parent
d1b66035a9
commit
920b858da7
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue