Skip to content

Commit

Permalink
feat: log the log level regardless of log level (influxdata#23425)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesam authored and chengshiwen committed Sep 1, 2024
1 parent b650e71 commit 8442da5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/influxd/run/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ func (cmd *Command) Run(args ...string) error {
// If there was an error on startup when creating the logger, output it now.
if logErr != nil {
cmd.Logger.Error("Unable to configure logger", zap.Error(logErr))
} else {
logger.New(cmd.Stderr).Info("configured logger", zap.String("format", config.Logging.Format), zap.String("level", config.Logging.Level.String()))
}

// Write the PID file.
Expand Down

0 comments on commit 8442da5

Please sign in to comment.