fix: prevent DEBUG logs from appearing on CLI stdout · basicmachines-co/basic-memory@63b9849 · GitHub
Skip to content

Commit 63b9849

Browse files
phernandezclaude
andcommitted
fix: prevent DEBUG logs from appearing on CLI stdout
Remove loguru's default handler at the very start of cli/app.py, before any other imports. This prevents module-level code (like TemplateLoader.__init__) from logging to stdout during import. The import chain cli/commands/project.py -> mcp/async_client.py -> api/app.py -> api/routers/prompt_router.py -> api/template_loader.py triggers TemplateLoader() instantiation at DEBUG level before init_cli_logging() can remove the default handler. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 622d37e commit 63b9849

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

src/basic_memory/cli/app.py

Lines changed: 10 additions & 3 deletions

0 commit comments

Comments
 (0)