radical-cybertools / radical.utils

Utility classes and tools for various radical projects
Other
8 stars 6 forks source link

more informative warning on logging import order #374

Closed andre-merzky closed 1 year ago

andre-merzky commented 1 year ago

This results in the following:

$ python3 -c 'import logging; logging.error("foo"); import radical.utils'

ERROR:root:foo
WARNING: Import `radical.utils` before `logging` to avoid the application to deadlock on `fork()`!
codecov[bot] commented 1 year ago

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 61.43%. Comparing base (ef698e8) to head (27876cb). Report is 317 commits behind head on devel.

Files with missing lines Patch % Lines
src/radical/utils/atfork/stdlib_fixer.py 88.88% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## devel #374 +/- ## ========================================== + Coverage 61.41% 61.43% +0.02% ========================================== Files 60 60 Lines 6709 6716 +7 ========================================== + Hits 4120 4126 +6 - Misses 2589 2590 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.