mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
improve debug
This commit is contained in:
@@ -191,10 +191,16 @@ def get_job_from_s3(service_id, job_id):
|
|||||||
time.sleep(sleep_time)
|
time.sleep(sleep_time)
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
current_app.logger.error("Failed to get job from bucket", exc_info=True)
|
current_app.logger.error(
|
||||||
|
f"Failed to get job {FILE_LOCATION_STRUCTURE.format(service_id, job_id)} from bucket",
|
||||||
|
exc_info=True,
|
||||||
|
)
|
||||||
return None
|
return None
|
||||||
except Exception:
|
except Exception:
|
||||||
current_app.logger.error("Failed to get job from bucket", exc_info=True)
|
current_app.logger.error(
|
||||||
|
f"Failed to get job {FILE_LOCATION_STRUCTURE.format(service_id, job_id)} from bucket",
|
||||||
|
exc_info=True,
|
||||||
|
)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
raise Exception("Failed to get object after 3 attempts")
|
raise Exception("Failed to get object after 3 attempts")
|
||||||
|
|||||||
Reference in New Issue
Block a user