def filter(self, record):
        if isinstance(record.msg, basestring):
            message = record.msg.lower()
            if all(kw in message for kw in self.KEYWORDS):
                record.levelname = 'DEBUG'
                record.levelno = logging.DEBUG
        return 1
Change the severity of selected log records.
dataset/ETHPy150Open paylogic/pip-accel/pip_accel/__init__.py/DownloadLogFilter.filter