composer-cli: Fix upload log output
This commit is contained in:
parent
2a2313151b
commit
4256a1d4f2
@ -194,13 +194,14 @@ def upload_log(socket_path, api_version, args, show_json=False, testmode=0):
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
api_route = client.api_url(api_version, "/upload/log/%s" % args[0])
|
api_route = client.api_url(api_version, "/upload/log/%s" % args[0])
|
||||||
try:
|
result = client.get_url_json(socket_path, api_route)
|
||||||
result = client.get_url_raw(socket_path, api_route)
|
(rc, exit_now) = handle_api_result(result, show_json)
|
||||||
except RuntimeError as e:
|
if exit_now:
|
||||||
print(str(e))
|
return rc
|
||||||
return 1
|
|
||||||
|
print("Upload log for %s:\n" % result["upload_id"])
|
||||||
|
print(result["log"])
|
||||||
|
|
||||||
print(result)
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def upload_cancel(socket_path, api_version, args, show_json=False, testmode=0):
|
def upload_cancel(socket_path, api_version, args, show_json=False, testmode=0):
|
||||||
|
Loading…
Reference in New Issue
Block a user