mirror of
https://github.com/mjl-/mox.git
synced 2025-01-14 01:06:27 +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, ",") + "]"
|
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)
|
||||||
|
|
Loading…
Reference in a new issue