Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hack: improve boskos scripts logging #1166

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion hack/checkin_account.py
Expand Up @@ -34,5 +34,5 @@

resp = conn.getresponse()
if resp.status != 200:
sys.exit("Got invalid response %d" % resp.status)
sys.exit("boskos: checkin_account: Got invalid response while checking for 'release': %d: %s, %r" % (resp.status, resp.reason, resp))
conn.close()
2 changes: 1 addition & 1 deletion hack/checkout_account.py
Expand Up @@ -53,7 +53,7 @@ def post_request(host, input_state = "clean"):
status, reason, result = post_request(BOSKOS_HOST, "free")

if status != 200:
sys.exit("Got invalid response %d: %s" % (status, reason))
sys.exit("boskos: checkout_account: Got invalid response while checking for 'free': %d: %s, %r" % (status, reason, result))

body = json.loads(result)
print('export BOSKOS_RESOURCE_NAME="%s";' % body['name'])
Expand Down
2 changes: 1 addition & 1 deletion hack/heartbeat_account.py
Expand Up @@ -38,7 +38,7 @@

resp = conn.getresponse()
if resp.status != 200:
sys.exit("Got invalid response %d : %r : %r" % (resp.status, resp.reason, resp))
sys.exit("boskos: heartbeat_account: Got invalid response while sending heartbeat: %d: %s, %r" % (resp.status, resp.reason, resp))
conn.close()
# sleep for a minute
time.sleep(60)