Server Status: Write to status-error.log if there is connection error

This commit is contained in:
slawkens
2025-11-06 22:06:05 +01:00
parent 0a6d44bf21
commit 780d4ccef7

View File

@@ -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;
}