-
Notifications
You must be signed in to change notification settings - Fork 72
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
Don't configure logging handlers in a library #228
Comments
I'm sorry, I was not aware of this. Logging is optionally used only in schema initialization to track namespace imports or XSD schemas inclusion. I'm going to remove these lines for the next release: xmlschema/xmlschema/validators/schema.py Lines 63 to 66 in c81d429
|
brunato
added a commit
that referenced
this issue
Mar 14, 2021
Fix available within release v1.5.3. |
This was referenced Mar 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
xmlschema/xmlschema/validators/schema.py
Lines 62 to 66 in c81d429
You should not do this.
Which is how I spent my morning :/ In order to fix this, the code in my project that sets up logging now needs to have knowledge of where you are (currently) configuring handlers, and import them before setting up our own desired logging so that we can remove the loggers added by the library. Huge pain.
The text was updated successfully, but these errors were encountered: