Skip to content

Commit

Permalink
Change default log level and change verbosity to an env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrytfleung committed Feb 14, 2024
1 parent 79675a2 commit a84c2e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion collector/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion collector/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a84c2e3

Please sign in to comment.