DEV: receiving a log from the cloud (WIP)

This commit is contained in:
AvishaiW
2018-03-12 10:53:53 +02:00
parent 8a812ea455
commit 4712db4f4f
+6
View File
@@ -93,3 +93,9 @@ def run_server(
default=convert_date
)
)
if response.status_code == 500:
raise Exception("issues with cloud connections, "
"unable to run catalyst on the cloud")
recieved_data = response.json()
cloud_log_tail = base64.b64decode(recieved_data["logs"])
print(cloud_log_tail)