-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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)Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request