From 333267083e64e5cd9853172d1045a783943919dc Mon Sep 17 00:00:00 2001 From: Sebastian Tiedtke Date: Tue, 28 May 2024 11:50:58 -0400 Subject: [PATCH] Minor name change --- internal/cmd/common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cmd/common.go b/internal/cmd/common.go index 84fb35da5..913270b08 100644 --- a/internal/cmd/common.go +++ b/internal/cmd/common.go @@ -165,13 +165,13 @@ func getLogger(devMode bool, aiLogs bool) (*zap.Logger, error) { cores = append(cores, consoleCore) } - logFile := "" + aiLogFile := "" if aiLogs { aiCore, newLogFile, err := createAICoreLogger() if err != nil { return nil, errors.WithStack(err) } - logFile = newLogFile + aiLogFile = newLogFile cores = append(cores, aiCore) } @@ -187,7 +187,7 @@ func getLogger(devMode bool, aiLogs bool) (*zap.Logger, error) { // Record the caller of the log message newLogger = newLogger.WithOptions(zap.AddCaller()) - newLogger.Info("Logger initialized", zap.Bool("devMode", devMode), zap.Bool("aiLogs", aiLogs), zap.String("logFile", logFile)) + newLogger.Info("Logger initialized", zap.Bool("devMode", devMode), zap.Bool("aiLogs", aiLogs), zap.String("aiLogFile", aiLogFile)) return newLogger, nil }