From 93f7d5849e8dfc47e3b255ac5a59c1060d2bd216 Mon Sep 17 00:00:00 2001 From: Scott Date: Wed, 22 Jan 2020 15:36:20 +1030 Subject: [PATCH] Added newlines to logger.New --- cmd/revid-cli/main.go | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index d7bdd267..67cddc0a 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -167,15 +167,19 @@ func handleFlags() config.Config { } netLogger = netlogger.New() - log = logger.New(cfg.LogLevel, io.MultiWriter( - &lumberjack.Logger{ - Filename: filepath.Join(*logPathPtr, "netsender.log"), - MaxSize: 500, // MB - MaxBackups: 10, - MaxAge: 28, // days - }, - netLogger, - ), true) + log = logger.New( + cfg.LogLevel, + io.MultiWriter( + &lumberjack.Logger{ + Filename: filepath.Join(*logPathPtr, "netsender.log"), + MaxSize: 500, // MB + MaxBackups: 10, + MaxAge: 28, // days + }, + netLogger, + ), + true, + ) cfg.Logger = log