Skip to content

Commit cbdff56

Browse files
fix: Reduce debug noise (#4400)
* closes #4398
1 parent e436e18 commit cbdff56

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cve_bin_tool/parsers/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,9 @@ def find_vendor_from_purl(self, purl, ver) -> tuple[list[ScanInfo], bool]:
158158

159159
return vendorlist, True
160160
except Exception as e:
161-
self.logger.debug(f"Error occurred: {e}")
162-
self.logger.error("Unable to access purl2cpe database.")
161+
self.logger.debug(
162+
f"Error occurred: {e} - Unable to access purl2cpe database."
163+
)
163164
return [], False
164165

165166
def mismatch(self, purl, vendorlist) -> list[ScanInfo]:
@@ -205,8 +206,7 @@ def mismatch(self, purl, vendorlist) -> list[ScanInfo]:
205206
)
206207
return vendorlist_filtered
207208
except Exception as e:
208-
self.logger.debug(f"error: {e}")
209-
self.logger.error("Unable to access mismatch database.")
209+
self.logger.debug(f"error: {e} - Unable to access mismatch database.")
210210
return vendorlist
211211

212212
def db_open_and_get_cursor(self) -> sqlite3.Cursor:

0 commit comments

Comments
 (0)