Print error to stderr

This commit is contained in:
Joakim Hellsén 2022-12-19 18:41:55 +01:00
commit 7a0706a30d
No known key found for this signature in database
GPG key ID: 01FD861E3DAC09AC

View file

@ -17,7 +17,7 @@ def healthcheck():
if r.ok: if r.ok:
sys.exit(0) sys.exit(0)
except requests.exceptions.RequestException as e: except requests.exceptions.RequestException as e:
print(f"ERROR: {e}") print(f"ERROR: {e}", file=sys.stderr)
sys.exit(1) sys.exit(1)