diff --git a/cve_bin_tool/parsers/__init__.py b/cve_bin_tool/parsers/__init__.py index edb65f4e3a..4baaabb0bb 100644 --- a/cve_bin_tool/parsers/__init__.py +++ b/cve_bin_tool/parsers/__init__.py @@ -158,8 +158,7 @@ def find_vendor_from_purl(self, purl, ver) -> tuple[list[ScanInfo], bool]: return vendorlist, True except Exception as e: - self.logger.debug(f"Error occurred: {e}") - self.logger.error("Unable to access purl2cpe database.") + self.logger.debug(f"Error occurred: {e} - Unable to access purl2cpe database.") return [], False def mismatch(self, purl, vendorlist) -> list[ScanInfo]: @@ -205,8 +204,7 @@ def mismatch(self, purl, vendorlist) -> list[ScanInfo]: ) return vendorlist_filtered except Exception as e: - self.logger.debug(f"error: {e}") - self.logger.error("Unable to access mismatch database.") + self.logger.debug(f"error: {e} - Unable to access mismatch database.") return vendorlist def db_open_and_get_cursor(self) -> sqlite3.Cursor: