mirror of https://bitbucket.org/ausocean/av.git
cmd/rvcl/main.go: don't need to use multiWriter anymore in logger.New call
This commit is contained in:
parent
33359dc703
commit
9a7ace1abe
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue