Skip to content

Commit

Permalink
🍻 hidden launart's info log
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Jan 12, 2025
1 parent 33a68b3 commit 7c372b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arclet/entari/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c372b8

Please sign in to comment.