Remove logging to speed up the program

This commit is contained in:
Joakim Hellsén 2023-01-20 08:13:04 +01:00
commit c48b2b1bf6
No known key found for this signature in database
GPG key ID: C889E6DC5EDBB36D
9 changed files with 2 additions and 272 deletions

View file

@ -1,7 +1,6 @@
import sys
import requests
from loguru import logger
def healthcheck() -> None:
@ -15,7 +14,7 @@ def healthcheck() -> None:
if r.ok:
sys.exit(0)
except requests.exceptions.RequestException as e:
logger.error(f"Healthcheck failed: {e}")
print(f"Healthcheck failed: {e}", file=sys.stderr)
sys.exit(1)