From adbe85b47fb3e9dc9536556517907a9a6315a31f Mon Sep 17 00:00:00 2001 From: neha_gupta Date: Wed, 8 Feb 2023 22:07:35 +0530 Subject: [PATCH] Fixed twice display of "Logging to file" line (#2438) ## Description Issue - https://github.com/alcionai/corso/issues/2404 Fixed display of redundant messages. ## Does this PR need a docs update or release note? - [x] :no_entry: No ## Type of change - [x] :bug: Bugfix ## Issue(s) * https://github.com/alcionai/corso/issues/2404 ## Test Plan - [ ] :muscle: Manual --- src/pkg/logger/logger.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pkg/logger/logger.go b/src/pkg/logger/logger.go index a6b5aa4dd..6438f3563 100644 --- a/src/pkg/logger/logger.go +++ b/src/pkg/logger/logger.go @@ -11,8 +11,6 @@ import ( "github.com/spf13/pflag" "go.uber.org/zap" "go.uber.org/zap/zapcore" - - "github.com/alcionai/corso/src/cli/print" ) // Default location for writing logs, initialized in platform specific files @@ -123,7 +121,6 @@ func PreloadLoggingFlags() (string, string) { if logfile != "stdout" && logfile != "stderr" { LogFile = logfile logdir := filepath.Dir(logfile) - print.Info(context.Background(), "Logging to file: "+logfile) err := os.MkdirAll(logdir, 0o755) if err != nil {