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)