From 9a7ace1abe48478a754e2aa8495546551f138c13 Mon Sep 17 00:00:00 2001 From: Saxon Date: Wed, 29 Jan 2020 10:01:05 +1030 Subject: [PATCH] cmd/rvcl/main.go: don't need to use multiWriter anymore in logger.New call --- cmd/rvcl/main.go | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/cmd/rvcl/main.go b/cmd/rvcl/main.go index f4bd7c15..7e51c457 100644 --- a/cmd/rvcl/main.go +++ b/cmd/rvcl/main.go @@ -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, )