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"
|
"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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue