-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add config option for skipping hostname resolution in Gelf logging #25674
Conversation
final JBoss7GelfLogHandler handler = new JBoss7GelfLogHandler(); | ||
if (config.skipHostnameResolution) { | ||
if (previousSkipHostnameResolution == null) { | ||
System.clearProperty(PROPERTY_LOGSTASH_GELF_SKIP_HOSTNAME_RESOLUTION); |
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.
when previousSkipHostnameResolution
is null, it shouldn't clear the property
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.
Not true
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.
ok, it works anyway.
Two questions:
|
The idea is that we should never taint the environment unless it's necessary.
Not sure, but why do you think it's a security issue? FWIW, none of this new stuff is enabled by default. |
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.
OK for me, your answers make sense
Relates to: #25643