Closed joschi closed 13 years ago
That was stupid. Thanks a lot Joschi.
Added test to avoid such things in future. jar v0.6 in downloads.
Potential patch implemented in joschi/gelfj@6e3cf420b0dcadf344670de080bb0d2b33018d9b
EDIT: Seems that I've been too slow. ;)
I like your solution better, more transparent error handling.
Merged most of your changes but leaved both Gradle and Maven systems + Added test for host issues. v0.7 jar delivered.
Many thanks for your work.
Great, thanks for your efforts and fast response. :)
Due to the changes from commit e43ac6a879ff31bb155c gelfj (or more precisely GelfSender) won't forward messages to the configured Graylog2 server if the originHost property is unset or empty.
The fallback (getting the local host's hostname) only kicks in when GelfMessage#toJson is being executed. Otherwise GelfMessage#isValid will return false due to GelfMessage.host being empty.