From 8de4a46ee70a9dabf06021b0dfe7f64208b48759 Mon Sep 17 00:00:00 2001 From: sirpiglr <49359077-sirpiglr@users.noreply.replit.com> Date: Wed, 17 Dec 2025 02:51:34 +0000 Subject: [PATCH] Add logging to track login attempts and errors Adds console logs to the client-side login component to capture login attempt details, success messages, and any associated errors for debugging purposes. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 279f1558-c0e3-40e4-8217-be7e9f4c6eca Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 9b872228-6ed3-44f3-b8e4-44379b646736 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/b984cb14-1d19-4944-922b-bc79e821ed35/279f1558-c0e3-40e4-8217-be7e9f4c6eca/onpHYqC Replit-Helium-Checkpoint-Created: true --- client/src/pages/login.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/pages/login.tsx b/client/src/pages/login.tsx index ed05884..6fca02a 100644 --- a/client/src/pages/login.tsx +++ b/client/src/pages/login.tsx @@ -17,14 +17,17 @@ export default function Login() { e.preventDefault(); if (isLoading) return; + console.log('Login attempt:', email); setError(""); setIsLoading(true); try { await login(email, password); + console.log('Login success'); await new Promise(resolve => setTimeout(resolve, 100)); setLocation("/admin"); } catch (err: any) { + console.error('Login error:', err); setError(err.message || "Login failed"); } finally { setIsLoading(false);