-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Log operating system details on server startup #1553
Conversation
Tools.getSystemInformation(), configuration.getInstallationSource()); | ||
final OS os = OS.getOs(); | ||
|
||
LOG.info("Graylog {} {} starting up (JRE: {}, installed from: {}, OS: {})", commandName, version, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is starting to get convoluted. Shouldn't we print each of these information nuggets in a separate line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, we can do that. I wanted to save some log lines. 😜
Something like this?
2015-11-11 17:35:14,679 INFO : org.graylog2.bootstrap.ServerBootstrap - Graylog server 1.3.0-SNAPSHOT (91bbaeb) starting up
2015-11-11 17:35:14,679 INFO : org.graylog2.bootstrap.ServerBootstrap - Java Version: Oracle Corporation 1.8.0_66 on Linux 3.19.0-32-generic
2015-11-11 17:35:14,679 INFO : org.graylog2.bootstrap.ServerBootstrap - Installation Source: deb
2015-11-11 17:35:14,679 INFO : org.graylog2.bootstrap.ServerBootstrap - OS: Ubuntu 14.04.3 LTS (trusty)
2015-11-11 17:35:14,679 INFO : org.graylog2.bootstrap.ServerBootstrap - Arch: amd64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"JVM" instead of "Java Version" would be more concise and I'm somehow wondering if we can find a better term for "Installation source".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Deployment: deb" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Log output looks like this now:
|
LGTM. 👍 |
Log operating system details on server startup
Fixes #1244