Skip to content

Commit

Permalink
Restore missing __main__ logs (#896)
Browse files Browse the repository at this point in the history
* Use twine logger to ensure main always logs

* Revert "Use twine logger to ensure main always logs"

This reverts commit 698f940.

* Configure root logger instead of twine logger

* Add changelog entry
  • Loading branch information
bhrutledge committed May 21, 2022
1 parent b0b932f commit 5525a2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog/896.bugfix.rst
@@ -0,0 +1 @@
Reconfgure root logger to show all log messages.
7 changes: 3 additions & 4 deletions twine/cli.py
Expand Up @@ -52,6 +52,7 @@ def configure_output() -> None:
# test_main.py due to capsys not being cleared.
logging.config.dictConfig(
{
"disable_existing_loggers": False,
"version": 1,
"handlers": {
"console": {
Expand All @@ -61,10 +62,8 @@ def configure_output() -> None:
"highlighter": rich.highlighter.NullHighlighter(),
}
},
"loggers": {
"twine": {
"handlers": ["console"],
},
"root": {
"handlers": ["console"],
},
}
)
Expand Down

0 comments on commit 5525a2a

Please sign in to comment.