Skip to content

Align how we log all system property values - #3578

Merged
idelpivnitskiy merged 1 commit into
apple:mainfrom
idelpivnitskiy:log-props
Jul 21, 2026
Merged

Align how we log all system property values#3578
idelpivnitskiy merged 1 commit into
apple:mainfrom
idelpivnitskiy:log-props

Conversation

@idelpivnitskiy

Copy link
Copy Markdown
Member

Motivation:

Align all props to use consistent pattern.

Modifications:

  • Use -D{}={} pattern instead of -D{}: {} to help systems with key-value log layout to show properties correctly as a single line.
  • Add standard DANGEROUS_CONFIG_WARNING prefix where necessary.
  • Update formatting and wording to keep things consistent.

Result:

System properties are logged in consistent format and easier to parse for key-value logging systems.

Motivation:

Align all props to use consistent pattern.

Modifications:

- Use `-D{}={}` pattern instead of `-D{}: {}` to help systems with
key-value log layout to show properties correctly as a single line.
- Add standard `DANGEROUS_CONFIG_WARNING` prefix where necessary.
- Update formatting and wording to keep things consistent.

Result:

System properties are logged in consistent format and easier to parse
for key-value logging systems.
}
}
LOGGER.debug("{}={}", logLevelPropertyStr, logLevel);
LOGGER.debug("-D{}={}", logLevelPropertyStr, logLevel);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to ignore: Not something you did in this PR, but in the throw case, logLevel will be null. While you're here do you want to change it to something else or is null obvious enough?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be ok as-is, this is a super rate feature that is likely used only by us

@idelpivnitskiy
idelpivnitskiy merged commit 96556c2 into apple:main Jul 21, 2026
19 checks passed
@idelpivnitskiy
idelpivnitskiy deleted the log-props branch July 21, 2026 16:11
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.

2 participants