~mendelmaleh/log

e1f3c50fb8f03cfcf957e83a39169bbc821f599b — Mendel E 4 months ago 903e138 master
Oops
1 files changed, 1 insertions(+), 1 deletions(-)

M log.go
M log.go => log.go +1 -1
@@ 69,7 69,7 @@ func (l *Logger) Printf(f string, v ...interface{}) {

// Fatal outputs a log with Fatal level followed by os.Exit(1).
func (l *Logger) Fatal(v ...interface{}) {
	l.Output(&Log{Level: LInfo, Time: time.Now(), Text: fmt.Sprint(v...)})
	l.Output(&Log{Level: LFatal, Time: time.Now(), Text: fmt.Sprint(v...)})
	os.Exit(1)
}