Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailBurdukov committed Sep 27, 2023
1 parent 5b5e6c7 commit 8907743
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ch_backup/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,21 @@ def configure(config_loguru: dict) -> None:
"sink": value["sink"],
"format": config_loguru["formatters"][value["format"]],
"enqueue": True,
"filter": value["filter"] if "filter" in value else make_filter(name),
}
if "level" in value:
handler["level"] = value["level"]

if "filter" in value:
handler["filter"] = value["filter"]
handler["filter"][""] = False
else:
handler["filter"] = make_filter(name)
loguru_handlers.append(handler)

logger.configure(handlers=loguru_handlers, activation=[("", True)])

# Configure logging.
logging.basicConfig(handlers=[InterceptHandler()], level=0)
logging.debug("Checkroot")


def critical(msg, *args, **kwargs):
Expand Down

0 comments on commit 8907743

Please sign in to comment.