diff --git a/index.py b/index.py index f587a04..2818533 100644 --- a/index.py +++ b/index.py @@ -80,14 +80,14 @@ def tcp_ping(service): handle_service_status( service_name=name, down=True, - error=f"[E] Connection to {host}:{port} timed out", + error=f"Connection to {name} timed out", ) except Exception as err: handle_service_status( service_name=name, down=True, - error=f"[E] Connection error: {err}", + error=str(err), ) time.sleep(config["pinging"]["seconds_between_ping"])