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 had a look. In principle the new behavior seems more correct than the old one, which was just using the root logger.
In practice however, if you use cli_run from your app, you have no way of controlling the log level of the output now if you use setup_logging=False.
You can sidestep this by adding log filters, which we did to solve the issue for us. But it's not ideal. I suspect a good solution would require more extensive changes, but my Python logging-fu is not quite there yet I'm afraid.
Issue
Logging is being set up despite
cli_run(setup_logging=False)
, causing virtualenv output to end up inINFO
instead ofDEBUG
Environment
Only occurs on 20.27.2 or later.
Output of the virtual environment creation
Previously output was logged to DEBUG. Now it is logged to INFO.
The text was updated successfully, but these errors were encountered: