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

Patching from 1.x
This commit is contained in:
slawkens
2026-01-30 22:38:19 +01:00
parent 44c917aefa
commit ed8b36f452

View File

@@ -92,6 +92,8 @@ class OTS_ServerInfo
return new OTS_Buffer($data); return new OTS_Buffer($data);
} }
log_append('status-error.log', "Cannot connect to {$this->server}:{$this->port} - Error code: $error, message: $message");
return false; return false;
} }