Skip to content

Commit

Permalink
Merge pull request #3424 from rebeccacremona/tweak-logging-again
Browse files Browse the repository at this point in the history
Another logging tweak
  • Loading branch information
rebeccacremona authored Oct 31, 2023
2 parents 4552731 + 9f7aab1 commit b5e4d4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perma_web/perma/celery_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,9 @@ def capture_with_scoop(capture_job):
if poll_data['stderr_logs'] and didnt_load in poll_data['stderr_logs']:
logger.warning(f"{capture_job.link_id}: Scoop failed to load submitted URL ({capture_job.submitted_url}).")
capture_job.link.tags.add('scoop-load-failure')
elif not poll_data['stderr_logs'] and poll_data['stdout_logs'] and poll_data['stdout_logs'].endswith(' created.\n'):
logger.warning(f"{capture_job.link_id}: Scoop stopped after tmp folder creation.")
capture_job.link.tags.add('scoop-stopped-failure')
elif not poll_data['stderr_logs'] and not poll_data['stdout_logs']:
logger.warning(f"{capture_job.link_id}: Scoop failed without logs ({poll_data['id_capture']}).")
capture_job.link.tags.add('scoop-silent-failure')
Expand Down

0 comments on commit b5e4d4b

Please sign in to comment.