Skip to content

Commit 2523d6e

Browse files
committed
Added additional debug logging on error
1 parent 1327316 commit 2523d6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ def cli_token_login():
435435
except requests.HTTPError as err:
436436
if err.response.status_code == 401:
437437
error = 'Error: CLI token could not be authorized, create a new and try again'
438+
logging.warning(f'HTTP error {err.response.status_code} on url {url} with data {data}')
439+
logging.warning(f'The following content was returned: {err.response.content}')
438440
raise err
439441

440442
resp = json.loads(content)

0 commit comments

Comments
 (0)