1
0
Fork 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
1 changed files with 2 additions and 2 deletions

View File

@ -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)