Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not log to stdout minor issues #1477

Open
pombredanne opened this issue May 12, 2024 · 0 comments
Open

Do not log to stdout minor issues #1477

pombredanne opened this issue May 12, 2024 · 0 comments

Comments

@pombredanne
Copy link
Member

`https://github.com/nexB/vulnerablecode/blob/4a6734b1bbaa8df6fd816f3eb4fd843a88c1ecec/vulnerabilities/import_runner.py#L246 logs these messages and these are not errors, not even warnings
We should selectively catch exceptions and filter this "already exists" log.
``
Invalid vulnerability reference: <VulnerabilityReference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-1509>: {'url': ['Vulnerability reference with this Url already exists.']}
Invalid vulnerability reference: <VulnerabilityReference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-17569>: {'url': ['Vulnerability reference with this Url already exists.']}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant