mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-18 13:38:53 -04:00
fix debug statement in scheduled tasks
This commit is contained in:
@@ -285,13 +285,11 @@ def process_delivery_receipts(self):
|
||||
retry_count = self.request.retries
|
||||
wait_time = 3600 * 2**retry_count
|
||||
|
||||
current_app.logger.exception(str(ex))
|
||||
|
||||
try:
|
||||
raise self.retry(ex=ex, countdown=wait_time)
|
||||
except self.MaxRetriesExceededError:
|
||||
current_app.logger.error(
|
||||
"Failed process delivery receipts after max retries"
|
||||
f"Failed process delivery receipts after max retries with exception {str(ex)}"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user