From 6a2551546d1473f69568623e9014c04335772607 Mon Sep 17 00:00:00 2001 From: weeihan Date: Sat, 25 Jul 2026 22:08:18 +0800 Subject: [PATCH] fix: log DeepSeek error in risk-flags catch block --- app/api/dashboard/ai/risk-flags/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/dashboard/ai/risk-flags/route.ts b/app/api/dashboard/ai/risk-flags/route.ts index 88d4c77..a9547d8 100644 --- a/app/api/dashboard/ai/risk-flags/route.ts +++ b/app/api/dashboard/ai/risk-flags/route.ts @@ -151,7 +151,8 @@ ${JSON.stringify(aggregates, null, 2)} `, }], }) - } catch { + } catch (err) { + console.error('DeepSeek risk-flags error:', err) return NextResponse.json({ error: 'AI service unavailable' }, { status: 503 }) }