gemnasium / logrus-graylog-hook

Graylog hook for logrus
MIT License
87 stars 63 forks source link

handling error case #62

Closed agarwalyash02 closed 4 months ago

agarwalyash02 commented 4 months ago

Without this change, errors tend to print as {}, or whatever the exported fields on the concrete implementation of the error are.

This code borrowed from logrus.JSONFormatter: https://github.com/sirupsen/logrus/commit/8287db793 https://github.com/sebest/logrusly/pull/4

gravis commented 4 months ago

Thanks for reporting!

gravis commented 4 months ago

I have released v3.2.1 with this bug fix. Thanks!