Skip to content

Commit

Permalink
fix EventLoggerPlugin.__getattr__
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhaus authored and FlorianLudwig committed Feb 4, 2022
1 parent 3f05d35 commit 635e3ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions amqtt/plugins/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ async def log_event(self, *args, **kwargs):
def __getattr__(self, name):
if name.startswith("on_"):
return partial(self.log_event, event_name=name)
raise AttributeError


class PacketLoggerPlugin:
Expand Down

0 comments on commit 635e3ad

Please sign in to comment.