Remove logging to speed up the program
This commit is contained in:
parent
519066649d
commit
c48b2b1bf6
9 changed files with 2 additions and 272 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue