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
|