From efb1feafc9cf18b29bf36cbffc9e72de2c87f59d Mon Sep 17 00:00:00 2001 From: Kimi Agent Date: Sat, 14 Mar 2026 15:01:34 -0400 Subject: [PATCH 1/2] fix: replace print() with proper logging (#29, #51) --- src/infrastructure/events/bus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infrastructure/events/bus.py b/src/infrastructure/events/bus.py index d812271..e6957d2 100644 --- a/src/infrastructure/events/bus.py +++ b/src/infrastructure/events/bus.py @@ -63,7 +63,7 @@ class EventBus: @bus.subscribe("agent.task.*") async def handle_task(event: Event): - print(f"Task event: {event.data}") + logger.debug(f"Task event: {event.data}") await bus.publish(Event( type="agent.task.assigned", From db129bbe161947d94597a5469eea3b14dbed8c7e Mon Sep 17 00:00:00 2001 From: Kimi Agent Date: Sat, 14 Mar 2026 15:06:41 -0400 Subject: [PATCH 2/2] fix: replace print() with proper logging (#29, #51) --- src/timmy/voice_loop.py | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/timmy/voice_loop.py b/src/timmy/voice_loop.py index c66053a..d802402 100644 --- a/src/timmy/voice_loop.py +++ b/src/timmy/voice_loop.py @@ -383,17 +383,14 @@ class VoiceLoop: if self.config.use_say_fallback else f"Piper ({self.config.piper_voice.name})" ) - print( - f"\n{'=' * 60}\n" - f" 🎙️ Timmy Voice — Sovereign Voice Interface\n" - f"{'=' * 60}\n" + logger.info( + "\n" + "=" * 60 + "\n" + " 🎙️ Timmy Voice — Sovereign Voice Interface\n" + "=" * 60 + "\n" f" STT: Whisper ({self.config.whisper_model})\n" f" TTS: {tts_label}\n" - f" LLM: Timmy (local Ollama)\n" - f"{'=' * 60}\n" - f" Speak naturally. Timmy will listen, think, and respond.\n" - f" Press Ctrl-C to exit.\n" - f"{'=' * 60}" + " LLM: Timmy (local Ollama)\n" + "=" * 60 + "\n" + " Speak naturally. Timmy will listen, think, and respond.\n" + " Press Ctrl-C to exit.\n" + "=" * 60 ) self._running = True @@ -432,7 +429,7 @@ class VoiceLoop: "goodbye timmy", "stop listening", ): - print("\n 👋 Goodbye!\n") + logger.info("👋 Goodbye!") break # 3. THINK — send to Timmy @@ -444,7 +441,7 @@ class VoiceLoop: self._speak(response) except KeyboardInterrupt: - print("\n\n 👋 Voice loop stopped.\n") + logger.info("👋 Voice loop stopped.") finally: self._running = False self._cleanup_loop()