severb / graypy

Python logging handler for Graylog that sends messages in GELF (Graylog Extended Log Format).
https://www.graylog.org/
BSD 3-Clause "New" or "Revised" License
258 stars 90 forks source link

Fix GELFRabbitHandler example #63

Closed claytondaley closed 8 years ago

claytondaley commented 8 years ago

The %2F in the string must be a legacy approach. If the string includes %2F, the vhost always ends up as /, ignoring the virtual_host kwarg. I also made the exchange into an explicit kwarg. It duplicates the default so it could actually be excluded, but making it explicit helps the user realize where the messages are found.