Added missing ... operator.
This commit is contained in:
parent
1fbdcae68a
commit
6189ddd48d
@ -37,7 +37,7 @@ func (l *Logger) Println(v ...interface{}) {
|
|||||||
fmt.Fprintln(l.file, nowStr, v)
|
fmt.Fprintln(l.file, nowStr, v)
|
||||||
|
|
||||||
if l.toStdout {
|
if l.toStdout {
|
||||||
fmt.Println(v)
|
fmt.Println(v...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ func (l *Logger) Fatalln(v ...interface{}) {
|
|||||||
fmt.Fprintln(l.file, nowStr, v)
|
fmt.Fprintln(l.file, nowStr, v)
|
||||||
|
|
||||||
if l.toStdout {
|
if l.toStdout {
|
||||||
fmt.Println(v)
|
fmt.Println(v...)
|
||||||
}
|
}
|
||||||
|
|
||||||
l.file.Close()
|
l.file.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user