From 7c372b80b9d280d73df60921cce6be50871478eb Mon Sep 17 00:00:00 2001 From: RF-Tar-Railt Date: Sun, 12 Jan 2025 23:16:30 +0800 Subject: [PATCH] :beers: hidden launart's info log --- arclet/entari/logger.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arclet/entari/logger.py b/arclet/entari/logger.py index 3b79e92..9a0599c 100644 --- a/arclet/entari/logger.py +++ b/arclet/entari/logger.py @@ -83,6 +83,8 @@ def emit(self, record: logging.LogRecord): def default_filter(record): + if record["name"].startswith("launart"): + return record["level"].no >= logger.level("SUCCESS").no log_level = record["extra"].get("entari_log_level", "INFO") levelno = logger.level(log_level).no if isinstance(log_level, str) else log_level return record["level"].no >= levelno