radical-cybertools / radical.utils

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

Update warning message for Logger #373

Closed mtitov closed 1 year ago

mtitov commented 1 year ago
autofs/nccs-svm1_home1/sharplo/seavea-rct/intro/ve_rct/lib/python3.9/site-packages/radical/utils/atfork/stdlib_fixer.py:77: UserWarning: logging handlers already registered.
  warnings.warn('logging handlers already registered.')

came from here

in line 72-78 of radical/utils/atfork/stdlib_fixer.py

if logging.getLogger().handlers:
        # We could register each lock with atfork for these handlers but if
        # these exist, other loggers or not yet added handlers could as well.
        # Its safer to insist that this fix is applied before logging has been
        # configured.
        warnings.warn('logging handlers already registered.')
      # raise Error('logging handlers already registered.')
mtitov commented 1 year ago

resolved in #374