Skip to content

Commit 6cb51b9

Browse files
committed
fixing fatalln method
1 parent 500ecc1 commit 6cb51b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

default.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ func Fatalf(format string, v ...interface{}) {
101101
}
102102

103103
// Fatalln logs message as `FATAL` and call to os.Exit(1).
104-
func Fatalln(format string, v ...interface{}) {
105-
std.output(levelFatal, 3, &format, v...)
104+
func Fatalln(v ...interface{}) {
105+
std.output(levelFatal, 3, nil, v...)
106106
exit(1)
107107
}
108108

log.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ func (l *Logger) Fatalf(format string, v ...interface{}) {
260260
}
261261

262262
// Fatalln logs message as `FATAL` and call to os.Exit(1).
263-
func (l *Logger) Fatalln(format string, v ...interface{}) {
264-
l.output(levelFatal, 3, &format, v...)
263+
func (l *Logger) Fatalln(v ...interface{}) {
264+
l.output(levelFatal, 3, nil, v...)
265265
exit(1)
266266
}
267267

0 commit comments

Comments
 (0)