Skip to content

Commit 5525a2a

Browse files
authored
Restore missing __main__ logs (#896)
* 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
1 parent b0b932f commit 5525a2a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

changelog/896.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Reconfgure root logger to show all log messages.

twine/cli.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def configure_output() -> None:
5252
# test_main.py due to capsys not being cleared.
5353
logging.config.dictConfig(
5454
{
55+
"disable_existing_loggers": False,
5556
"version": 1,
5657
"handlers": {
5758
"console": {
@@ -61,10 +62,8 @@ def configure_output() -> None:
6162
"highlighter": rich.highlighter.NullHighlighter(),
6263
}
6364
},
64-
"loggers": {
65-
"twine": {
66-
"handlers": ["console"],
67-
},
65+
"root": {
66+
"handlers": ["console"],
6867
},
6968
}
7069
)

0 commit comments

Comments
 (0)