'hidden' error message #30
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: karolyi/py3-validate-email#30
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
i dont want to see error messages in the console, i only want to receive True and False, how to do this? I set debug=False
In order for me to be able to answer your question, post the logs it's emitting please.
............Validation for '' failed: Invalid email address.
.Validation for '' failed: Invalid email address.
......Validation for '' failed: Invalid email address.
..Validation for '' failed: Invalid email address.
.
I wrote tests during registration so that registration would not take place, respectively, he says that the email is empty, the test is completed successfully, since it cannot register as planned by the tests, but I do not need such messages in tests, how to disable it?
Do you use any of python's logging module in your code? This project uses the same framework (just like django does), and so if you do, you can set up logging filters to filter out this module's messages.
Also, passing an empty email address will result in failure, of course.
I use this in tests, do you suggest that I disable the logging log in tests?
I run the tests with the command:
python3 -m unittest -v
your suggestions? I have 30 test files.
you can construct a test runner with disabling logging, something like the opposite of how to post debug logs.
I understood in which direction to look, but then I will not see the prints I need, I already understood this, everything is very bad, it's a pity that I will have to use a modified version of your module to easily disable logs, because of one message
logging ≠ debug.
What you want here is to remove logging entirely by turning off the debug option. Logging is for generic information about the validated addresses. I will look into what's doable, but wanted to clarify this.
if I disable then I don't see the information I need, it intersects with logging, why don't you make it easier, your module is the best, but I would like to disable logging in your module
Closing this as wontfix.
With a little bit of searching and learning, you can find yourself a way to filter out your unwanted messages from logging. I just did it locally for testing.
Coming here and complaining about how it's not doing what you want is not a bug, it's you not wanting to put in the work and research it.