From f9829a6338da1abc2713f3aba6a8bb01da554415 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 20 Sep 2024 08:40:50 +0200 Subject: [PATCH] chore(logging): simplify log template string (cherry picked from commit 83aeb90376a2b14ca22da19f206cefdb8448175b) --- pkg/log/logging.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/log/logging.go b/pkg/log/logging.go index 901c2469a..e3de9b421 100644 --- a/pkg/log/logging.go +++ b/pkg/log/logging.go @@ -26,13 +26,13 @@ import ( ) // ErrFmt holds the format for all the console logging -const ErrFmt = `${time_rfc3339_nano}: ${level} ` + "\t" + `▶ ${prefix} ${short_file}:${line}` +const ErrFmt = `${time_rfc3339}: ${level} ` + "\t" + `▶ ${prefix} ${short_file}:${line}` // WebFmt holds the format for all logging related to web requests -const WebFmt = `${time_rfc3339_nano}: WEB ` + "\t" + `▶ ${remote_ip} ${id} ${method} ${status} ${uri} ${latency_human} - ${user_agent}` +const WebFmt = `${time_rfc3339}: WEB ` + "\t" + `▶ ${remote_ip} ${id} ${method} ${status} ${uri} ${latency_human} - ${user_agent}` // Fmt is the general log format -const Fmt = `%{color}%{time:` + time.RFC3339Nano + `}: %{level}` + "\t" + `▶ %{shortpkg}/%{shortfunc} %{id:03x}%{color:reset} %{message}` +const Fmt = `%{color}%{time:` + time.RFC3339 + `}: %{level}` + "\t" + `▶ %{id:03x}%{color:reset} %{message}` const logModule = `vikunja`