-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Ignore connections that fail parsing instead of panicking on BSD #288
Conversation
Rebased |
I think it would be great if we have a log file where can write such warnings. |
Sounds reasonable. I'll find some time this week to add the logging infrastructure. |
Rebased. |
- Tentative fix for #217
- I actually love unreadable code
Rebased. |
For the moment this is the only bit of code that logs anything. I will look to add more logging incrementally. |
The logging is currently optional , I think it should always happen Line 33 in 1c996c3
|
Actually nvm I don't feel that strong about it |
I made it optional because I feel like it's only really useful as a mechanism to help us debug users' issues. Not to mention that we would have to deal with log rotation (on different platforms no less, yuck). So this is good enough for now. We can always change it in the future if necessary. |
Will fix #217.
What I'm doing not is not ideal - I think there should be some kind of warning when parsing fails, but I'm not sure what's the most appropriate way to raise this warning. But at least it's better than panicking.
MacOS & BSD users can you please test this patch? Pay particular attention to whether there are missing connections. Thanks.
Further improvements very much welcomed.