From 780d4ccef741c1dd45a00bfc121fba9f1a175313 Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 6 Nov 2025 22:06:05 +0100 Subject: [PATCH] Server Status: Write to status-error.log if there is connection error --- system/libs/pot/OTS_ServerInfo.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/libs/pot/OTS_ServerInfo.php b/system/libs/pot/OTS_ServerInfo.php index 76ebcaf7..a0ee464f 100644 --- a/system/libs/pot/OTS_ServerInfo.php +++ b/system/libs/pot/OTS_ServerInfo.php @@ -97,6 +97,8 @@ class OTS_ServerInfo return new OTS_Buffer($data); } + log_append('status-error.log', "Cannot connect to {$this->server}:{$this->port} - Error code: $error, message: $message"); + return false; }