feat(bot): enhance topic processor logging for diagnosis

Added comprehensive logging to topic-processor.ts to capture API errors, parsing failures, and silent decisions. Also added result logging to purchase and payment ingestion handlers to trace the processor's output.
This commit is contained in:
2026-03-14 14:54:49 +04:00
parent 572c21f621
commit 8de8419028
3 changed files with 52 additions and 0 deletions

View File

@@ -2476,6 +2476,11 @@ export function registerConfiguredPurchaseTopicIngestion(
engagementAssessment: conversationContext.engagement
})
options.logger?.info(
{ event: 'purchase.topic_processor_result', result: processorResult },
'Topic processor finished'
)
// Handle processor failure - fun "bot sleeps" message only if explicitly mentioned
if (!processorResult) {
if (conversationContext.explicitMention) {