The durabletask package creates its own logger using logging.Logger() directly (not logging.getLogger()), which means it creates an independent logger that doesn't respect the root logger configuration.
def get_logger(
name_suffix: str,
log_handler: Optional[logging.Handler] = None,
log_formatter: Optional[logging.Formatter] = None) -> logging.Logger:
logger = logging.Logger(f"durabletask-{name_suffix}")
Ideally, the package should be using logging.getLogger() since that enables all customers/clients to easily disable or modify the verbosity of the durabletask-* packages as they need.
# Explicitly suppress third-party package logs
logging.getLogger("durabletask-worker").setLevel(logging.WARNING)
The
durabletaskpackage creates its own logger usinglogging.Logger()directly (notlogging.getLogger()), which means it creates an independent logger that doesn't respect the root logger configuration.Ideally, the package should be using
logging.getLogger()since that enables all customers/clients to easily disable or modify the verbosity of thedurabletask-*packages as they need.