-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Print the java version being used on startup #21559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for the PR, @dreis2211. Here's what's logged by
I wonder if the Java version should appear earlier in the message. I also wonder about the two uses of What do you think of something like the following:
|
Funny enough, I had a similar version before (with I'm totally fine with what you suggested. Let me know if I should change it. |
@dreis2211 Thanks. Given that this will go into 2.4, I'm comfortable with the small risk of breaking someone's log message parsing. It's an easy one for them to correct and we don't make any guarantees about the structure of any of our messages. I have a slight preference for If you have a moment to make the updates, that'd be great. Thank you. |
@wilkinsona Sure. Done. |
Thanks again, @dreis2211. |
Hi,
this PR closes #21553 by using
System.getProperty("java.version")
. Alternatively, we could check forRuntime.version()
being available (which is the case for JDK 9+) and use that.Cheers,
Christoph