We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cf7138 commit b458254Copy full SHA for b458254
1 file changed
twine/commands/upload.py
@@ -18,6 +18,7 @@
18
from typing import Dict, List, cast
19
20
import requests
21
+from requests_toolbelt.utils import dump
22
23
from twine import commands
24
from twine import exceptions
@@ -141,11 +142,7 @@ def upload(upload_settings: settings.Settings, dists: List[str]) -> None:
141
142
resp = repository.upload(package)
143
144
if upload_settings.verbose:
- logger.info(
145
- f"Received {resp.status_code} response from {resp.url}: {resp.reason}"
146
- )
147
- if resp.text:
148
- logger.info(f"Response text:\n{resp.text}")
+ logger.info(dump.dump_all(resp).decode("utf-8"))
149
150
# Bug 92. If we get a redirect we should abort because something seems
151
# funky. The behaviour is not well defined and redirects being issued
0 commit comments