Files
telegram-downloader/utils/log.py
T
yuming cf40343c51
部署到群晖 / deploy (push) Failing after 10m45s
初始化 telegram-downloader 并接入群晖 CI/CD
2026-04-22 21:29:03 +08:00

17 lines
313 B
Python

"""Util module to handle logs."""
import logging
class LogFilter(logging.Filter):
"""
Custom Log Filter.
Ignore logs from specific functions.
"""
# pylint: disable = W0221
def filter(self, record):
if record.funcName in ("invoke"):
return False
return True