mirror of
https://github.com/Dineshkarthik/telegram_media_downloader.git
synced 2024-09-20 07:16:32 +08:00
17 lines
313 B
Python
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
|