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
This commit is contained in:
Claude 2026-01-02 20:53:11 +00:00
parent 156bcbb52f
commit 193e269274
No known key found for this signature in database

View file

@ -118,7 +118,14 @@ class EugenBot(irc.bot.SingleServerIRCBot):
# Extract actual content without mention # Extract actual content without mention
content = self.detector.extract_content(message) 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: 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 return
try: try: