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

GELFRabbitHandler not imported in python new versions. #140

Open PabloEmidio opened 2 years ago

PabloEmidio commented 2 years ago

When use python3.9.13 I ran into the following error: AttributeError: module 'graypy' has no attribute 'GELFRabbitHandler

Conditions: graypy==2.1.0 amqplib==1.0.2

PabloEmidio commented 1 year ago

Hey! Is this lib still suported? Debugging the error, I found out that the problem is the amqplib (last update was 7 years ago) and it's being suppressed by the ImportError. But great news, amqlib was forked and now it's the official suport of Celery organization in this repository. https://github.com/severb/graypy/blob/a5a82c535002db6015473cb59a7476361060d358/graypy/__init__.py#L23-L26

It's time to consider migrate. Could we discuss it?

Petchesi-Iulian commented 1 year ago

I also encounter this issue with graypy==2.1.0 amqplib==1.0.2

severb commented 1 year ago

Would either of you be interested in opening a pull request to fix this issue?

severb commented 2 months ago

Was anyone able to test the fix?

I don't have an active development setup for graypy right now but I'm more than happy to merge the fix if others can confirm it.