You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change all StreamHandlers for the given logger to the given level
"""
ifisinstance(level, str):
level=getattr(logging, level.upper())
old=None
logger=logging.getLogger(root)
forhandlerinlogger.handlers:
ifisinstance(handler, logging.StreamHandler):
old=handler.level
handler.setLevel(level)
returnold
See also #2659 . It might be argued that nothing important is logging to the distributed logger, and everything is logging to a child e.g. distributed.client (even through the loggers are flattened with the simple config), which might be true, but it further erodes the notion of hierarchical logging.
The text was updated successfully, but these errors were encountered:
With
config.yaml
including simple-formlogging
config:All looks good. Start a
Client
:No logging output, as the
distributed
logger has had itsHandler
(aStreamHandler
) set toWARNING
threshold.Once a
Client
is started and fires-up a local cluster/scheduler, I suspect a worker:distributed/distributed/worker.py
Lines 424 to 425 in 09b959a
... runs
silence_logging
, which does just as it is named:distributed/distributed/utils.py
Lines 728 to 742 in 09b959a
See also #2659 . It might be argued that nothing important is logging to the
distributed
logger, and everything is logging to a child e.g.distributed.client
(even through the loggers are flattened with the simple config), which might be true, but it further erodes the notion of hierarchical logging.The text was updated successfully, but these errors were encountered: