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

🐛 Fix API logging #768

Merged
merged 2 commits into from
Sep 30, 2021
Merged

🐛 Fix API logging #768

merged 2 commits into from
Sep 30, 2021

Conversation

znatty22
Copy link
Member

@znatty22 znatty22 commented Sep 30, 2021

Closes #760

Tested locally and in deployed dev. Now we can see log messages from all loggers under the parent creator logger in the console and the TaskLogger's stream

@codecov
Copy link

codecov bot commented Sep 30, 2021

Codecov Report

Merging #768 (dca8ac0) into master (6ebd02c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #768   +/-   ##
=======================================
  Coverage   95.01%   95.01%           
=======================================
  Files         172      172           
  Lines        7479     7480    +1     
=======================================
+ Hits         7106     7107    +1     
  Misses        373      373           
Impacted Files Coverage Δ
creator/releases/models.py 95.50% <100.00%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d078b8e...dca8ac0. Read the comment docs.

@znatty22 znatty22 marked this pull request as ready for review September 30, 2021 15:29
Copy link
Contributor

@gsantia gsantia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you mean to not change the testing.py settings file?

Sets the creator logger to INFO level so that messages will be
processed by the handlers

Remove redundant logging configurations from the settings
If any module needs to do something different than the creator
logger, add it as an additional block (e.g. genomic_data_loader.py)

Log messages from the creator logger were being ignored by it's handlers
since the handlers are set to process messages at INFO level or higher while the
creator logger was set to the default log level of WARNING
@znatty22 znatty22 merged commit b07e9b9 into master Sep 30, 2021
@znatty22 znatty22 deleted the fix-api-logging branch September 30, 2021 16:09
znatty22 added a commit that referenced this pull request Sep 30, 2021
## Release 1.19.7

### Summary

- Emojis: 🐛 x2, ♻️ x1
- Categories: Fixes x2, Other Changes x1

### New features and changes

- [#768](#768) - 🐛 Fix API logging - [b07e9b9](b07e9b9) by [znatty22](https://github.com/znatty22)
- [#767](#767) - 🐛  Fix writing of job logs in local development - [d078b8e](d078b8e) by [znatty22](https://github.com/znatty22)
- [#763](#763) - ♻️ Omit Content-Length header in download validation report - [f61c0e8](f61c0e8) by [znatty22](https://github.com/znatty22)
@znatty22 znatty22 mentioned this pull request Sep 30, 2021
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.

Fix API logging
2 participants