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

Tweak logging #3423

Merged
merged 2 commits into from
Oct 31, 2023
Merged

Conversation

rebeccacremona
Copy link
Contributor

This is a very small PR to tweak our logging of captures made with the Scoop API.

  1. We now store the Scoop job id in a dedicated database field, so that it is available even if the job never advanced beyond this loop (one variety of error we have been debugging).

  2. We log the Scoop job id and status while in the loop, to make it easier to match up Perma logs and Scoop API logs, when something goes wrong.

@rebeccacremona rebeccacremona requested a review from a team as a code owner October 31, 2023 15:24
@rebeccacremona rebeccacremona requested review from matteocargnelutti and removed request for a team October 31, 2023 15:24
@matteocargnelutti
Copy link
Contributor

🏄 !

Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (d8def7c) 68.79% compared to head (97269b6) 68.78%.
Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3423      +/-   ##
===========================================
- Coverage    68.79%   68.78%   -0.02%     
===========================================
  Files           53       53              
  Lines         7317     7316       -1     
===========================================
- Hits          5034     5032       -2     
- Misses        2283     2284       +1     
Files Coverage Δ
perma_web/perma/models.py 86.35% <100.00%> (+0.01%) ⬆️
perma_web/perma/admin.py 84.08% <0.00%> (+0.07%) ⬆️
perma_web/perma/celery_tasks.py 47.13% <0.00%> (-0.08%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rebeccacremona rebeccacremona merged commit 4552731 into harvard-lil:develop Oct 31, 2023
2 checks passed
@rebeccacremona rebeccacremona deleted the tweak-logging branch October 31, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants