From 920b858da791ea63a95c63be6312562003f1e7ee Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Thu, 14 Dec 2023 12:56:40 +0100 Subject: [PATCH] when logging, format timestamps more compactly, without needing quoting --- mlog/log.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mlog/log.go b/mlog/log.go index ab7ba1b..be1acbf 100644 --- a/mlog/log.go +++ b/mlog/log.go @@ -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)