diff options
-rw-r--r-- | changelogs/unreleased/always-include-ms-in-logs.yml | 5 | ||||
-rw-r--r-- | internal/log/log.go | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/changelogs/unreleased/always-include-ms-in-logs.yml b/changelogs/unreleased/always-include-ms-in-logs.yml new file mode 100644 index 000000000..41674b04b --- /dev/null +++ b/changelogs/unreleased/always-include-ms-in-logs.yml @@ -0,0 +1,5 @@ +--- +title: Change timeformat to not omit trailing 0s +merge_request: 256 +author: +type: fixed diff --git a/internal/log/log.go b/internal/log/log.go index 61e0f036e..cd2271413 100644 --- a/internal/log/log.go +++ b/internal/log/log.go @@ -30,7 +30,7 @@ func Configure(format string, level string) { switch format { case "json": for _, l := range Loggers { - l.Formatter = &logrus.JSONFormatter{TimestampFormat: "2006-01-02T15:04:05.999Z"} + l.Formatter = &logrus.JSONFormatter{TimestampFormat: "2006-01-02T15:04:05.000Z"} } case "": // Just stick with the default |