cmd/rvcl/main.go: don't need to use multiWriter anymore in logger.New call

This commit is contained in:
Saxon 2020-01-29 10:01:05 +10:30
parent 33359dc703
commit 9a7ace1abe
1 changed files with 6 additions and 9 deletions

View File

@ -61,7 +61,6 @@ import (
"encoding/json"
"flag"
"fmt"
"io"
"os"
"runtime/pprof"
@ -150,14 +149,12 @@ func main() {
// writing of messages.
log = logger.New(
logLevel,
io.MultiWriter(
&lumberjack.Logger{
Filename: logPath,
MaxSize: logMaxSize, // MB
MaxBackups: logMaxBackups,
MaxAge: logMaxAge, // days
},
),
&lumberjack.Logger{
Filename: logPath,
MaxSize: logMaxSize, // MB
MaxBackups: logMaxBackups,
MaxAge: logMaxAge, // days
},
logSuppress,
)