Fix TCP error messages
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user