Skip to content

Commit 2cba800

Browse files
authored
Merge branch 'main' into feature/auto-format-on-save
2 parents 5b9d2e1 + 63b9849 commit 2cba800

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/basic_memory/cli/app.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
from typing import Optional
1+
# Remove loguru's default handler IMMEDIATELY, before any other imports.
2+
# This prevents DEBUG logs from appearing on stdout during module-level
3+
# initialization (e.g., template_loader.TemplateLoader() logs at DEBUG level).
4+
from loguru import logger
25

3-
import typer
6+
logger.remove()
47

5-
from basic_memory.config import ConfigManager, init_cli_logging
8+
from typing import Optional # noqa: E402
9+
10+
import typer # noqa: E402
11+
12+
from basic_memory.config import ConfigManager, init_cli_logging # noqa: E402
613

714

815
def version_callback(value: bool) -> None:

0 commit comments

Comments
 (0)