Skip to content

Commit

Permalink
logging fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Haigutus authored Jun 28, 2024
1 parent e7df114 commit d8b276f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emf/common/integrations/rabbit.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def on_message(self, _unused_channel, basic_deliver, properties, body):
properties.content_type = content_type
logger.info(f"Message converted")
except Exception as error:
logger.error(f"Message conversion failed: {error}")
logger.error(f"Message conversion failed: {error}", exc_info=True)
# ack = False

if self.message_handlers:
Expand All @@ -389,7 +389,7 @@ def on_message(self, _unused_channel, basic_deliver, properties, body):
logger.info(f"Handling message with handler: {message_handler.__class__.__name__}")
body = message_handler.handle(body, properties=properties)
except Exception as error:
logger.error(f"Message handling failed: {error}")
logger.error(f"Message handling failed: {error}", exc_info=True)
# ack = False

if ack:
Expand Down

0 comments on commit d8b276f

Please sign in to comment.