Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

Suppress all log noise during init (ERROR level only)

RaghavChamadiya898506965bcd
diff --git a/packages/cli/src/repowise/cli/commands/init_cmd.py b/packages/cli/src/repowise/cli/commands/init_cmd.py
index 550a6f777..20ec58e4a 100644
--- a/packages/cli/src/repowise/cli/commands/init_cmd.py
+++ b/packages/cli/src/repowise/cli/commands/init_cmd.py
@@ -231,18 +231,19 @@ def init_command(
# Load saved API keys from .repowise/.env (won't overwrite existing env vars)
load_dotenv(repo_path)
- # Suppress noisy library/structlog output so the interactive UX stays clean
+ # Suppress all library/structlog output so the interactive UX stays clean.
+ # Progress bars and summary lines are the only output the user needs.
import logging
- logging.getLogger("httpx").setLevel(logging.WARNING)
- logging.getLogger("httpcore").setLevel(logging.WARNING)
+ logging.getLogger("httpx").setLevel(logging.ERROR)
+ logging.getLogger("httpcore").setLevel(logging.ERROR)
for _logger_name in ("repowise.core", "repowise.server"):
- logging.getLogger(_logger_name).setLevel(logging.WARNING)
+ logging.getLogger(_logger_name).setLevel(logging.ERROR)
try:
import structlog
structlog.configure(
- wrapper_class=structlog.make_filtering_bound_logger(logging.WARNING),
+ wrapper_class=structlog.make_filtering_bound_logger(logging.ERROR),
)
except ImportError:
pass