[kimi] fix: add logging to silent except Exception handlers (#646) #692

Merged
kimi merged 1 commits from kimi/issue-646 into main 2026-03-21 03:50:27 +00:00
Collaborator

Fixes #646

Summary

Added logger.exception() calls to 20 silent except Exception handlers across 9 files that were swallowing errors without any logging, making production debugging extremely difficult.

Changes by file:

  • timmy/loop_qa.py — 6 handlers in probe functions + orchestrator
  • timmy/backends.py — 2 handlers in health_check methods
  • timmy/tools_delegation/init.py — 1 handler in _run_kimi
  • timmy/tools_intro/init.py — 4 handlers in introspection tools
  • dashboard/middleware/request_logging.py — 1 handler upgraded debug→warning
  • dashboard/routes/health.py — 1 handler in _check_sqlite
  • dashboard/routes/grok.py — 2 handlers in query and stats
  • dashboard/routes/voice.py — 1 handler in tts_speak
  • dashboard/routes/db_explorer.py — 2 handlers in _query_database

Approach:

  • No control flow changes — only added logging before existing returns
  • Used each module's existing logger
  • All tests pass (2145 unit, 2162 pre-push)
Fixes #646 ## Summary Added `logger.exception()` calls to 20 silent `except Exception` handlers across 9 files that were swallowing errors without any logging, making production debugging extremely difficult. ### Changes by file: - **timmy/loop_qa.py** — 6 handlers in probe functions + orchestrator - **timmy/backends.py** — 2 handlers in health_check methods - **timmy/tools_delegation/__init__.py** — 1 handler in _run_kimi - **timmy/tools_intro/__init__.py** — 4 handlers in introspection tools - **dashboard/middleware/request_logging.py** — 1 handler upgraded debug→warning - **dashboard/routes/health.py** — 1 handler in _check_sqlite - **dashboard/routes/grok.py** — 2 handlers in query and stats - **dashboard/routes/voice.py** — 1 handler in tts_speak - **dashboard/routes/db_explorer.py** — 2 handlers in _query_database ### Approach: - No control flow changes — only added logging before existing returns - Used each module's existing logger - All tests pass (2145 unit, 2162 pre-push)
kimi added 1 commit 2026-03-21 03:50:03 +00:00
fix: add logging to silent except Exception handlers across codebase
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
c97ac19b7b
Add logger.exception() calls to 20 silent except Exception handlers
that were swallowing errors without any logging, making production
debugging extremely difficult.

Files fixed:
- timmy/loop_qa.py (6 handlers in probe functions + orchestrator)
- timmy/backends.py (2 handlers in health_check methods)
- timmy/tools_delegation/__init__.py (1 handler in _run_kimi)
- timmy/tools_intro/__init__.py (4 handlers in introspection tools)
- dashboard/middleware/request_logging.py (1 handler upgraded debug→warning)
- dashboard/routes/health.py (1 handler in _check_sqlite)
- dashboard/routes/grok.py (2 handlers in query and stats)
- dashboard/routes/voice.py (1 handler in tts_speak)
- dashboard/routes/db_explorer.py (2 handlers in _query_database)

No control flow changes — only added logging before existing returns.

Fixes #646

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
kimi merged commit e3d425483d into main 2026-03-21 03:50:27 +00:00
kimi deleted branch kimi/issue-646 2026-03-21 03:50:27 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#692