Skip to content

Commit

Permalink
Minor name change
Browse files Browse the repository at this point in the history
  • Loading branch information
sourishkrout committed May 28, 2024
1 parent a5fb702 commit 3332670
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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
}

Expand Down

0 comments on commit 3332670

Please sign in to comment.