Skip to content

Changes the log level for variable expansion messages - #550

Merged
venmanyarun merged 1 commit into
OpenLiberty:1.xfrom
sajeerzeji:fix/GH549-expanding-variable-message-noise-in-the-build-log
Sep 22, 2026
Merged

venmanyarun merged 1 commit into
OpenLiberty:1.xfrom
sajeerzeji:fix/GH549-expanding-variable-message-noise-in-the-build-log

Conversation

@sajeerzeji

@sajeerzeji sajeerzeji commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #549

Changes the log level for variable expansion messages in ServerConfigDocument.resolveExpansionProperties() from INFO to DEBUG.

This eliminates unnecessary build log noise during normal variable expansion while preserving the diagnostic output when running Maven/Gradle in debug mode. This behavior is now consistent with VariableUtility.java.

Before (INFO level - noisy output in normal builds):

[INFO] Resolved environment variable "EXP_VAR" in path "{EXP_VAR}_{EXP_VAR2}" to "TEST"
[INFO] Resolved environment variable "EXP_VAR2" in path "{EXP_VAR}_{EXP_VAR2}" to "UNIX"
[INFO] Resolved path "{EXP_VAR}_{EXP_VAR2}" to "TEST_UNIX"

After (DEBUG level - clean normal builds):

Default build output:
(No expansion variable log noise printed)
When running in debug mode (-X in Maven / --debug in Gradle):

DEBUG] Resolved environment variable "EXP_VAR" in path "{EXP_VAR}_{EXP_VAR2}" to "TEST"
[DEBUG] Resolved environment variable "EXP_VAR2" in path "{EXP_VAR}_{EXP_VAR2}" to "UNIX"
[DEBUG] Resolved path "{EXP_VAR}_{EXP_VAR2}" to "TEST_UNIX"

@venmanyarun
venmanyarun merged commit 9f1aaaf into OpenLiberty:1.x Sep 22, 2026
10 checks passed
@venmanyarun

Copy link
Copy Markdown
Member

create a sync PR for this in main branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants