Skip to content

Commit

Permalink
fix: improve log of consume_messages method
Browse files Browse the repository at this point in the history
  • Loading branch information
allisson committed Apr 15, 2024
1 parent f2bae7f commit 461f057
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqsx/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def consume_messages(
sqs_messages = response.get("Messages", [])
if not sqs_messages:
logger.debug(
f"Waiting some seconds because no message was received, seconds={wait_seconds}, queue_url={self.url}"
f"Waiting some seconds because no message was received, wait_seconds={wait_seconds}, "
f"polling_wait_seconds={polling_wait_seconds}, queue_url={self.url}"
)
time.sleep(wait_seconds)
continue
Expand Down

0 comments on commit 461f057

Please sign in to comment.