diff --git a/bbot/scanner/scanner.py b/bbot/scanner/scanner.py index c7a7aa0a1e..8321472584 100644 --- a/bbot/scanner/scanner.py +++ b/bbot/scanner/scanner.py @@ -1360,7 +1360,7 @@ def _log_handlers(self): error_handler = GzipRotatingFileHandler( str(self.home / "error.log"), maxBytes=1024 * 1024 * 100, backupCount=100 ) - error_handler.addFilter(lambda x: x.levelno == logging.TRACE or x.levelno >= logging.ERROR) + error_handler.addFilter(lambda x: x.levelno >= logging.ERROR and x.levelno != logging.TRACE) self.__log_handlers = [main_handler, debug_handler, error_handler] return self.__log_handlers