feat: log the log level regardless of log level (#23425)

pull/23462/head
Sam Arnold 2022-06-10 08:38:55 -04:00 committed by GitHub
parent c44ec5974d
commit febf7a927c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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.