Skip to content

Commit 23baf5e

Browse files
fix: Improved debug output (fixes #1653) (#1654)
1 parent 9ee0ae3 commit 23baf5e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cve_bin_tool/cvedb.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,10 @@ def get_vendor_product_pairs(self, package_names) -> list[dict[str, str]]:
766766
"product": package_names,
767767
}
768768
)
769+
if len(vendor_package_pairs) > 1:
770+
self.LOGGER.debug(f"Multiple vendors found for {package_names}")
771+
for entry in vendor_package_pairs:
772+
self.LOGGER.debug(f'{entry["product"]} - {entry["vendor"]}')
769773
else:
770774
for package_name in track(
771775
package_names, description="Processing the given list...."

cve_bin_tool/validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def _validate_xml(filename, xsd_file):
1717
try:
1818
result = theschema.validate(filename)
1919
except Exception as e:
20-
LOGGER.info(f"Failed to validate {filename} against {xsd_file}. Exception {e}")
20+
LOGGER.debug(f"Failed to validate {filename} against {xsd_file}. Exception {e}")
2121
result = "Fail"
2222
return result is None
2323

0 commit comments

Comments
 (0)