Skip to content

Commit

Permalink
Print exception with traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
gverm committed Feb 1, 2024
1 parent 8819a9a commit b0e3699
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "amqpstorm-flask"
version = "0.1.8"
version = "0.1.9"
description = "amqpstorm library for Flask"
readme = "README.md"
authors = [{ name = "Inuits", email = "[email protected]" }]
Expand Down
4 changes: 1 addition & 3 deletions src/amqpstorm_flask/RabbitMQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ def new_consumer():
if retries > max_retries:
exit(0)

self.logger.warning(
f"An error occurred while consuming the queue {queue_name}: {str(ex)}"
)
self.logger.exception(ex)
self.logger.warning(f"Retrying in {retry_delay} seconds...")
sleep(retry_delay)

Expand Down

0 comments on commit b0e3699

Please sign in to comment.