-
Notifications
You must be signed in to change notification settings - Fork 116
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
Remove eprintln!
usage from this library?
#88
Comments
@AndriusA Hey! I have time over the weekend to work on this. Just tell me how you want it to be done, if at all. |
@ArniDagur I agree, better methods of error logging sound like a great idea and I'd be happy to improve As it stands, many of the
Does that sound reasonable? |
Just pulled out the last few |
In the following Python code, I call
Engine
'sadd_filter_list
method on the string contents of each downloaded block list.When I run said code on a few popular blocklists, the console is filled with
Filter already exists
:Those particular messages come from
src/engine.rs#L166
where the library prints to the console in case of an error. I'm personally not a fan of this kind of "logging", since there's no way for me as a consumer of the library to tell it not to print to the console.@AndriusA Do you agree that another method of logging errors should be used? If so, what would be your preferred alternative approach? I'd be happy to make a PR.
The text was updated successfully, but these errors were encountered: