Skip to content

Commit

Permalink
feat: log the log level regardless of log level (#23425) (#23445)
Browse files Browse the repository at this point in the history
(cherry picked from commit febf7a9)

Co-authored-by: Sam Arnold <[email protected]>
  • Loading branch information
davidby-influx and lesam authored Jun 13, 2022
1 parent ec38d16 commit 5f1e5bf
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 @@ -123,6 +123,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 5f1e5bf

Please sign in to comment.