mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-14 23:07:49 -04:00
don't log exception info for retries
it includes task args, which might contain PII. And we don't need to know where the retry exception came from - it came from the line above
This commit is contained in:
@@ -96,9 +96,11 @@ def _send_data_to_service_callback_api(self, data, service_callback_url, token,
|
||||
try:
|
||||
self.retry(queue=QueueNames.RETRY)
|
||||
except self.MaxRetriesExceededError:
|
||||
current_app.logger.exception(
|
||||
"""Retry: {} has retried the max num of times
|
||||
for notification: {}""".format(function_name, notification_id)
|
||||
current_app.logger.error(
|
||||
"Retry: {} has retried the max num of times for notification: {}".format(
|
||||
function_name,
|
||||
notification_id
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user