Skip to content

Commit

Permalink
Merge pull request #1166 from damdo/improve-boskos-script-logging
Browse files Browse the repository at this point in the history
hack: improve boskos scripts logging
  • Loading branch information
k8s-ci-robot committed Mar 5, 2024
2 parents 3506b06 + 927301b commit 6764ed9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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)

0 comments on commit 6764ed9

Please sign in to comment.