From 253903235b3e55d8f49de97256ef09b713d25b60 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Tue, 5 Jul 2022 23:27:52 -0700 Subject: [PATCH 1/2] Set log level for `undefined` stability level to debug This is option 1 of https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/12104 --- service/internal/pipelines/pipelines.go | 2 +- service/internal/pipelines/pipelines_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service/internal/pipelines/pipelines.go b/service/internal/pipelines/pipelines.go index 553c10776b4..dc32b584abe 100644 --- a/service/internal/pipelines/pipelines.go +++ b/service/internal/pipelines/pipelines.go @@ -342,7 +342,7 @@ func logStabilityMessage(logger *zap.Logger, sl component.StabilityLevel) { case component.StabilityLevelAlpha, component.StabilityLevelBeta, component.StabilityLevelStable: logger.Debug("Stability level", zap.String(components.ZapStabilityKey, sl.String())) default: - logger.Info("Stability level of component undefined", zap.String(components.ZapStabilityKey, sl.String())) + logger.Debug("Stability level of component undefined", zap.String(components.ZapStabilityKey, sl.String())) } } diff --git a/service/internal/pipelines/pipelines_test.go b/service/internal/pipelines/pipelines_test.go index c1e149f3b6c..12c7195e5ad 100644 --- a/service/internal/pipelines/pipelines_test.go +++ b/service/internal/pipelines/pipelines_test.go @@ -359,7 +359,7 @@ func TestLogStabilityLevle(t *testing.T) { }, { level: zapcore.InfoLevel, - expectedLogs: 4, + expectedLogs: 3, }, } From 64c12761d94b7a1152ac80011409da15da4585ac Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Tue, 5 Jul 2022 23:29:05 -0700 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6710b2cc147..aea6408ded7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ ### 🧰 Bug fixes 🧰 - Fix initialization of the OpenTelemetry MetricProvider. (#5571) +- Set log level for `undefined` stability level to debug. (#5635) ## v0.54.0 Beta