-
Notifications
You must be signed in to change notification settings - Fork 28
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
Turn-off Warning messages on pybgpstream #250
Comments
I found a similar issue reported in 2021: A fix was commited to the main branch: I don't know what CAIDA's release cycle is so you might have to compile from source. Hopefully someone from CAIDA will be able to provide more information. |
@maxvantongeren can you give more info on what version(s) you are using? libbgpstream is using latest version of libparsebgp... |
@kcclaffy sorry for my late response. I'm running pybgpstream on version: 2.0.4. My libbgpstream/bgpreader are on verson 2.3.0. These should be the latest versions, as I recently installed them. |
Looks like libbgpstream ignores all the warnings from libparsebgp, but only silences the Not-Implemented ones. I've made a small patch to also silence Invalid ones: #251. I've tested it with your sample code and it appears to work, though I can only assume it won't hide anything important or break anything down the line. If it looks good to others then I can merge this and make a new release with packages etc. Until then you can try redirecting stderr to /dev/null to hide the messages, if you aren't using stderr for anything else. |
@brendonj Thank you, I'll try that. |
Currently I'm trying to load in data using the following code:
I only include a fraction of the warnings I get, which can't be ignored using the regular warnings package of python (I tried multiple approaches with this package). These error messages only appear when I try to load in data from 2020 and later. Data before 2019 seem to have valid prefixes according to the warning messages I get from 2020 on wards. I hope someone knows how I can turnoff these warnings internally in the pybgpstream package or how I can filter out these warnings in any other way. Thank you.
The text was updated successfully, but these errors were encountered: