-
Notifications
You must be signed in to change notification settings - Fork 375
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
Errors spamming the stderr output #1005
Comments
Can you provide a reproduction for that specific example? as it sounds like a potential bug. The whole concept though of not spamming errors sounds good |
Call |
This issue has not had any activity for 60 days and will be automatically closed in two weeks |
…ngle line (#1279) This reduces the amount of noise generated when using `--offline` if a database is not available for a particular ecosystem. While it was suggested that we could have some form of general error cache, for now I've just optimized for this specific case as really it's the one we expect the most and (in part) I think the nature of Go makes the more generic improvement a bit too faffy vs the gain. Resolves #1005
Some errors should only be displayed once, but spams the output because of its location in the code flow.
Currently the only example of this I have is :
https://github.com/google/osv-scanner/blob/main/internal/local/check.go/#L147-L148
Solution proposed:
Have some global hashmap that checks if this error has already been logged and don't repeat the log.
The text was updated successfully, but these errors were encountered: