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
I'm seeing this same error during official packaging for Fedora on Python 3.7 as well. It appears that once a logging event occurs, the level can't be changed.
I enabled Python 3.7 testing on Travis CI earlier today and was disappointed to run into the same test failure that is mentioned here. I then spent way too much of my time to get to the root cause (before I had read this issue).
This is definitely caused by a regression in behavior from Python 3.6 to 3.7, in fact I'm inclined to call it a bug, but I'm not sure if anyone cares (log levels don't usually change much). The issue is caused by isEnabledFor() using a stale (level, enabled) cache entry.
For now I've added a workaround to the test suite (cc41bf1) that clears the cache inside of the affected test, resolving the immediate issue. This was the only Python 3.7 incompatibility.
I'm going to close this issue now, given that the test suite now passes on Python 3.7. The fix is included in coloredlogs 11.0 (released earlier today).
Official package for openSUSE/Tumbleweed.
The text was updated successfully, but these errors were encountered: