waterWang opened a new pull request, #12733: URL: https://github.com/apache/maven/pull/12733
## Summary Fixes #12730 — `mvn --quiet` does not honor the `-q`/`--quiet` option. ## Root cause In `LookupInvoker.doConfigureWithTerminalWithRawStreamsDisabled()`, the `stdout` and `stderr` loggers were hardcoded to `LocationAwareLogger.INFO_INT`, ignoring the active log level set by the `-q`/`--quiet` option. When `-q` is passed, `context.loggerLevel` is set to `ERROR`, but the stdout logger remains at INFO, so `[INFO] [stdout] ...` lines still appear (e.g. from `help:evaluate -DforceStdout`). ## Fix Derive the stdout/stderr log level from `context.loggerLevel` instead of hardcoding INFO: - `-q`/`--quiet` → ERROR (suppresses `[INFO] [stdout]` prefix) - default → INFO (unchanged behavior) - `-X`/`--debug` → DEBUG ## Impact - `mvn --quiet help:evaluate -Dexpression=X -DforceStdout` now prints just the value, without the `[INFO] [stdout] ` prefix. - No behavior change for non-quiet invocations. ## Wallet [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT] -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
