diff --git a/app/api/nodes/route.ts b/app/api/nodes/route.ts index da0202e..a1db10b 100644 --- a/app/api/nodes/route.ts +++ b/app/api/nodes/route.ts @@ -156,6 +156,9 @@ export async function POST(request: NextRequest) { const finalGraphemes = getGraphemeLength(postText); if (finalGraphemes > 300) { console.error(`[POST /api/nodes] Post ${i + 1} exceeds 300 graphemes (${finalGraphemes})`); + console.error(`[POST /api/nodes] Post content: ${postText.substring(0, 200)}...`); + console.error(`[POST /api/nodes] Detail URL: ${detailUrl}`); + console.error(`[POST /api/nodes] Link suffix graphemes: ${getGraphemeLength(linkSuffix)}`); throw new Error(`Post exceeds 300 grapheme limit: ${finalGraphemes} graphemes`); }