From a84c2e3f25438341c296e388dec26c5f63829f7c Mon Sep 17 00:00:00 2001 From: Jerry Leung Date: Wed, 14 Feb 2024 15:49:44 -0800 Subject: [PATCH] Change default log level and change verbosity to an env variable --- collector/config.yaml | 2 +- collector/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/config.yaml b/collector/config.yaml index e46947e7f7..30a0f4570d 100644 --- a/collector/config.yaml +++ b/collector/config.yaml @@ -25,7 +25,7 @@ processors: exporters: logging: - verbosity: detailed + verbosity: ${SW_APM_EXPORTER_LOG_LEVEL} otlp: endpoint: "https://otel.collector.${SW_APM_DATA_CENTER}.cloud.solarwinds.com:443" headers: diff --git a/collector/main.go b/collector/main.go index ea4ecc8c83..d22d95dcfb 100644 --- a/collector/main.go +++ b/collector/main.go @@ -56,7 +56,7 @@ func main() { } func initLogger() *zap.Logger { - lvl := zap.NewAtomicLevelAt(zapcore.InfoLevel) + lvl := zap.NewAtomicLevelAt(zapcore.WarnLevel) envLvl := os.Getenv("OPENTELEMETRY_EXTENSION_LOG_LEVEL") userLvl, err := zap.ParseAtomicLevel(envLvl)