debug: add ray logging for Hetzner createServer API request/response
Add detailed ray logging to track exactly what is being sent to Hetzner's API and what response is received. This will help debug cloud-init script integration and verify that user_data is properly included in the request. Logs include: - Request endpoint and full params object - Complete API response 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
6c0840d4e0
commit
e055c3b101
1 changed files with 9 additions and 0 deletions
|
|
@ -108,8 +108,17 @@ public function uploadSshKey(string $name, string $publicKey): array
|
|||
|
||||
public function createServer(array $params): array
|
||||
{
|
||||
ray('Hetzner createServer request', [
|
||||
'endpoint' => '/servers',
|
||||
'params' => $params,
|
||||
]);
|
||||
|
||||
$response = $this->request('post', '/servers', $params);
|
||||
|
||||
ray('Hetzner createServer response', [
|
||||
'response' => $response,
|
||||
]);
|
||||
|
||||
return $response['server'] ?? [];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue