This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""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
|
||||
Reference in New Issue
Block a user