Skip to content

Commit

Permalink
fix: Reduce debug noise (#4400)
Browse files Browse the repository at this point in the history
* closes #4398
  • Loading branch information
anthonyharrison committed Aug 29, 2024
1 parent e436e18 commit cbdff56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cve_bin_tool/parsers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ 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]:
Expand Down Expand Up @@ -205,8 +206,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:
Expand Down

0 comments on commit cbdff56

Please sign in to comment.