Skip to content

Commit

Permalink
Include event handler name in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
anodos325 committed Jan 23, 2025
1 parent 1b71ee8 commit 5f021c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ async def wrap(handler):
try:
await handler(self, event_type, kwargs)
except Exception:
self.logger.error('Unhandled exception in event handler', exc_info=True)
self.logger.error('%s: Unhandled exception in event handler', name, exc_info=True)

# Send event also for internally subscribed plugins
for handler in self.__event_subs.get(name, []):
Expand Down

0 comments on commit 5f021c5

Please sign in to comment.