Commit 9d9d328b authored by Mahmoud Aglan's avatar Mahmoud Aglan

debug: add matchmaking debug info to response

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent d1b0d80b
......@@ -127,7 +127,9 @@ function handleQueue($db, string $userId, array $input): void {
}
}
jsonResponse(['queued' => true]);
// Debug: return what the search found
$debugOpponents = is_array($opponents) ? count($opponents) : 'not_array';
jsonResponse(['queued' => true, 'debug_found' => $debugOpponents, 'debug_user' => $userId, 'debug_url' => $searchUrl ?? 'none']);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment