Skip to content

Commit 21437ab

Browse files
shunjiazhusjy3
authored andcommitted
polish logs
1 parent 3cdd269 commit 21437ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

observability/initialize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ func initializeMeterProvider(ctx context.Context, cfg *configs.OpenTelemetryConf
256256
var errs []error
257257
var initialized bool
258258
if cfg == nil || cfg.EnableMetrics == nil || !*cfg.EnableMetrics {
259-
log.Info("Meter provider is not enabled")
259+
log.Debug("Meter provider is not enabled")
260260
return false, nil
261261
}
262262

observability/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func NewPlugin(opts ...Option) *plugin.Plugin {
5050
}
5151

5252
if err := Init(context.Background(), observabilityConfig); err != nil {
53-
log.Error("Init observability exporter and processor failed, return noop plugin", "error", err)
53+
log.Warn("Return a noop plugin", "error", err)
5454
return noOpPlugin(PluginName)
5555
}
5656

0 commit comments

Comments
 (0)