mirror of https://github.com/knative/pkg.git
Log metrics/logging init messages at debug level (#2522)
This commit is contained in:
parent
19adf798ef
commit
18f6995887
|
@ -114,8 +114,8 @@ func newLoggerFromConfig(configJSON, levelOverride string, opts []zap.Option) (*
|
|||
return nil, zap.AtomicLevel{}, err
|
||||
}
|
||||
|
||||
logger.Info("Successfully created the logger.")
|
||||
logger.Info("Logging level set to: " + loggingCfg.Level.String())
|
||||
logger.Debug("Successfully created the logger.")
|
||||
logger.Debug("Logging level set to: " + loggingCfg.Level.String())
|
||||
return logger, loggingCfg.Level, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ func (cmd *updateMetricsConfigWithExporter) handleCommand(w *metricsWorker) {
|
|||
ctx := cmd.ctx
|
||||
logger := logging.FromContext(ctx)
|
||||
if isNewExporterRequired(cmd.newConfig) {
|
||||
logger.Info("Flushing the existing exporter before setting up the new exporter.")
|
||||
logger.Debug("Flushing the existing exporter before setting up the new exporter.")
|
||||
flushGivenExporter(curMetricsExporter)
|
||||
e, f, err := newMetricsExporter(cmd.newConfig, logger)
|
||||
if err != nil {
|
||||
|
@ -88,7 +88,7 @@ func (cmd *updateMetricsConfigWithExporter) handleCommand(w *metricsWorker) {
|
|||
cmd.done <- err
|
||||
return
|
||||
}
|
||||
logger.Infof("Successfully updated the metrics exporter; old config: %v; new config %v", existingConfig, cmd.newConfig)
|
||||
logger.Debugf("Successfully updated the metrics exporter; old config: %v; new config %v", existingConfig, cmd.newConfig)
|
||||
}
|
||||
setCurMetricsConfigUnlocked(cmd.newConfig)
|
||||
cmd.done <- nil
|
||||
|
|
|
@ -48,7 +48,7 @@ func newPrometheusExporter(config *metricsConfig, logger *zap.SugaredLogger) (vi
|
|||
logger.Errorw("Failed to create the Prometheus exporter.", zap.Error(err))
|
||||
return nil, nil, err
|
||||
}
|
||||
logger.Infof("Created Prometheus exporter with config: %v. Start the server for Prometheus exporter.", config)
|
||||
logger.Debugf("Created Prometheus exporter with config: %v. Start the server for Prometheus exporter.", config)
|
||||
// Start the server for Prometheus scraping
|
||||
go func() {
|
||||
srv := startNewPromSrv(e, config.prometheusHost, config.prometheusPort)
|
||||
|
|
Loading…
Reference in New Issue