From 4ac81e6253469060bd2ba3e93e0fb76cb779ab44 Mon Sep 17 00:00:00 2001 From: Keepers Date: Tue, 31 Jan 2023 18:47:49 -0700 Subject: [PATCH] print location of log file (#2343) ## Does this PR need a docs update or release note? - [x] :no_entry: No ## Type of change - [x] :broom: Tech Debt/Cleanup ## Issue(s) * #2329 ## Test Plan - [x] :muscle: Manual --- src/pkg/logger/logger.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pkg/logger/logger.go b/src/pkg/logger/logger.go index 0d5ffe250..b76b46070 100644 --- a/src/pkg/logger/logger.go +++ b/src/pkg/logger/logger.go @@ -7,6 +7,7 @@ import ( "time" "github.com/alcionai/clues" + "github.com/alcionai/corso/src/cli/print" "github.com/spf13/cobra" "github.com/spf13/pflag" "go.uber.org/zap" @@ -118,6 +119,7 @@ func PreloadLoggingFlags() (string, string) { if logfile != "stdout" && logfile != "stderr" { logdir := filepath.Dir(logfile) + print.Info(context.Background(), "Logging to file: "+logfile) err := os.MkdirAll(logdir, 0o755) if err != nil {