RFR: 8366232: JFR startup messages are shown with -Xlog:jfr+startup=warning
Johannes Bechberger
jbechberger at openjdk.org
Thu Aug 28 07:02:46 UTC 2025
On Wed, 27 Aug 2025 12:07:54 GMT, Johannes Bechberger <jbechberger at openjdk.org> wrote:
> Only print the JFR startup messages when no or a < warning log level is set explicitly by the user.
The motivation is to better capture the user's intent. When the user doesn't set any warning level, then we keep the default behaviour, for backwards compatibility as in the original change, when the user sets the logging level, then we consider it.
You mentioned yourself in the original issue:
I'm just not sure we have a way to query if the logging level has been explicitly set to a given value.
I just implemented this. I just implemented a way to properly check whether the user didn't specify a logging level, so the code doesn't have to assume that a `warning` logging level means the user didn't set anything.
This change tries to reduce confusion.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26957#issuecomment-3232196397
More information about the hotspot-runtime-dev
mailing list