From 6e8619b747a86635c1822e75c0b42e875e774c71 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 10 Nov 2018 16:16:21 -0800 Subject: [PATCH] use proper stdout --- src/logger/logger.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/logger/logger.go b/src/logger/logger.go index 7dde71a..44e9c3f 100644 --- a/src/logger/logger.go +++ b/src/logger/logger.go @@ -2,7 +2,6 @@ package logger import ( "go.uber.org/zap" - "os" ) var sugar *zap.SugaredLogger @@ -18,7 +17,7 @@ func Initialize(debug bool) (error) { cfg.Encoding = "console" cfg.OutputPaths = []string{ - os.Stdout.Name(), + "stdout", "./sftp-server.log", }