Skip to content

Commit 81bd70d

Browse files
authored
cmd: --debug-pomerium raises only core log level, not envoy (#1441)
`--debug-pomerium` set `LogLevel=debug` but left `ProxyLogLevel` empty, so envoy inherited debug (`firstNonEmpty(ProxyLogLevel, LogLevel, debug)` in pkg/envoy/envoy.go), flooding logs with envoy output. Pin `ProxyLogLevel=info` so `--debug-pomerium` raises only Pomerium core logging; `--debug-envoy` still opts envoy into debug explicitly. Behavior change: `--debug-pomerium` alone no longer produces envoy debug logs. --------- Signed-off-by: Denis Mishin <dmishin@pomerium.com>
1 parent 35964ea commit 81bd70d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cmd/all_in_one.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ func (s *allCmdParam) makeBootstrapConfig(opt allCmdOptions) error {
298298
} else {
299299
s.cfg.Options.LogLevel = "info"
300300
}
301+
// Keep envoy (proxy) logging at info regardless of the core log level, so
302+
// --debug-pomerium raises only Pomerium core logging. --debug-envoy below
303+
// opts envoy into debug explicitly.
304+
s.cfg.Options.ProxyLogLevel = "info"
301305
if opt.debugEnvoy {
302306
s.cfg.Options.ProxyLogLevel = "debug"
303307
s.cfg.Options.LogLevel = "debug"

0 commit comments

Comments
 (0)