File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 18
18
from typing import Dict , List , cast
19
19
20
20
import requests
21
+ from requests_toolbelt .utils import dump
21
22
22
23
from twine import commands
23
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 )
142
143
143
144
if upload_settings .verbose :
144
- 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 } " )
145
+ logger .info (dump .dump_all (resp ).decode ("utf-8" ))
149
146
150
147
# Bug 92. If we get a redirect we should abort because something seems
151
148
# funky. The behaviour is not well defined and redirects being issued
You can’t perform that action at this time.
0 commit comments