Added a space between timestamp and format.
This commit is contained in:
parent
7bd462d1d6
commit
f5ce98c021
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user