1
0

Added a space between timestamp and format.

This commit is contained in:
Alexander Andreev 2022-02-07 19:38:20 +04:00
parent 7bd462d1d6
commit f5ce98c021
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -45,7 +45,7 @@ func (l *Logger) Printf(format string, v ...interface{}) {
nowStr := time.Now().UTC().Format(time.RFC3339) nowStr := time.Now().UTC().Format(time.RFC3339)
fmt.Fprintf(l.file, nowStr+format, v...) fmt.Fprintf(l.file, nowStr+" "+format, v...)
l.mut.Unlock() l.mut.Unlock()
} }
@ -71,7 +71,7 @@ func (l *Logger) Fatalf(format string, v ...interface{}) {
nowStr := time.Now().UTC().Format(time.RFC3339) nowStr := time.Now().UTC().Format(time.RFC3339)
fmt.Fprintf(l.file, nowStr+format, v...) fmt.Fprintf(l.file, nowStr+" "+format, v...)
l.file.Close() l.file.Close()
os.Exit(1) os.Exit(1)