From 193e2692742cff04d95874a9ace96e12d7fb7afd Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 2 Jan 2026 20:53:11 +0000 Subject: [PATCH] Add detailed logging for content extraction debugging - Log extracted content to help debug empty content issue - Add warning when content is empty after mention extraction - Display extraction info in dashboard for better visibility Helps diagnose why bot detects mentions but doesn't respond --- chatbot.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chatbot.py b/chatbot.py index 167e508..5a3f873 100644 --- a/chatbot.py +++ b/chatbot.py @@ -118,7 +118,14 @@ class EugenBot(irc.bot.SingleServerIRCBot): # Extract actual content without mention content = self.detector.extract_content(message) + self.logger.debug(f"Extracted content from '{message}': '{content}'") + if self.dashboard: + self.dashboard.log_event("info", {"message": f"Content extracted: '{content}'"}) + if not content: + self.logger.warning(f"Empty content after extraction from: {message}") + if self.dashboard: + self.dashboard.log_event("warning", {"message": f"Empty content from: {message}"}) return try: