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