From f5ce98c021ffca0f2fe6b402428342d6e922275b Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 7 Feb 2022 19:38:20 +0400 Subject: [PATCH] Added a space between timestamp and format. --- pkg/logging/logger.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/logging/logger.go b/pkg/logging/logger.go index 8e018e1..96bd88b 100644 --- a/pkg/logging/logger.go +++ b/pkg/logging/logger.go @@ -45,7 +45,7 @@ func (l *Logger) Printf(format string, v ...interface{}) { nowStr := time.Now().UTC().Format(time.RFC3339) - fmt.Fprintf(l.file, nowStr+format, v...) + fmt.Fprintf(l.file, nowStr+" "+format, v...) l.mut.Unlock() } @@ -71,7 +71,7 @@ func (l *Logger) Fatalf(format string, v ...interface{}) { nowStr := time.Now().UTC().Format(time.RFC3339) - fmt.Fprintf(l.file, nowStr+format, v...) + fmt.Fprintf(l.file, nowStr+" "+format, v...) l.file.Close() os.Exit(1)