-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
In case of unreachable graylog server GraylogHook.gelfLogger is silently initialized to nil: graylog_hook.go#L46 -> graylog_hook.go#L60
Then program crashes with nil pointer dereference on sending entry: graylog_hook.go#L146 -> graylog_hook.go#L208
I believe NewGraylogHook should return error and/or nil *GraylogHook or as a backward-compatible solution *GraylogHook should provide method to get initialization error.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels