You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can lead to issues if your import of cssutils happens later than your main logging config setup, since it will override whatever is already configured. To avoid it, you must pre-emptively import cssutils before your own logging config.
It would be easier if cssutils detected if the logger has already been set up, and didn't add it's own default config in that case. At the very least, if it preserved the loglevel the user has selected that would help.
The text was updated successfully, but these errors were encountered:
Hi!
On first import of
cssutils
, the'CSSUTILS'
logger is set up and configured with some default values, as can be seen here:https://github.com/jaraco/cssutils/blob/main/cssutils/errorhandler.py#L51-L56
This can lead to issues if your import of
cssutils
happens later than your main logging config setup, since it will override whatever is already configured. To avoid it, you must pre-emptively importcssutils
before your own logging config.It would be easier if
cssutils
detected if the logger has already been set up, and didn't add it's own default config in that case. At the very least, if it preserved the loglevel the user has selected that would help.The text was updated successfully, but these errors were encountered: