From 8442da5d52db1ccff3d3d2bb44a95c388415c351 Mon Sep 17 00:00:00 2001 From: Sam Arnold Date: Fri, 10 Jun 2022 08:38:55 -0400 Subject: [PATCH] feat: log the log level regardless of log level (#23425) --- cmd/influxd/run/command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/influxd/run/command.go b/cmd/influxd/run/command.go index 52ed8f0bdb6..5ee39ab5e50 100644 --- a/cmd/influxd/run/command.go +++ b/cmd/influxd/run/command.go @@ -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.