Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another logging tweak #3424

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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