remove logfire config, and specs docs, turn lifespan logging to debug

Signed-off-by: phernandez <paul@basicmachines.co>
This commit is contained in:
phernandez
2026-01-17 15:08:54 -06:00
parent a1c37c1dba
commit d1d433df15
27 changed files with 3 additions and 11892 deletions
-6
View File
@@ -1,9 +1,3 @@
# Suppress Logfire "not configured" warning - we only use Logfire in cloud/server contexts
import os
os.environ.setdefault("LOGFIRE_IGNORE_NO_CONFIG", "1")
# Remove loguru's default handler IMMEDIATELY, before any other imports.
# This prevents DEBUG logs from appearing on stdout during module-level
# initialization (e.g., template_loader.TemplateLoader() logs at DEBUG level).
from loguru import logger
@@ -139,7 +139,6 @@ def status() -> None:
def setup() -> None:
"""Set up cloud sync by installing rclone and configuring credentials.
SPEC-20: Simplified to project-scoped workflow.
After setup, use project commands for syncing:
bm project add <name> <path> --local-path ~/projects/<name>
bm project bisync --name <name> --resync # First time
+3 -3
View File
@@ -28,7 +28,7 @@ async def lifespan(app: FastMCP):
container = McpContainer.create()
set_container(container)
logger.info(f"Starting Basic Memory MCP server (mode={container.mode.name})")
logger.debug(f"Starting Basic Memory MCP server (mode={container.mode.name})")
# Show telemetry notice (first run only) and track startup
show_notice_if_needed()
@@ -50,13 +50,13 @@ async def lifespan(app: FastMCP):
yield
finally:
# Shutdown - coordinator handles clean task cancellation
logger.info("Shutting down Basic Memory MCP server")
logger.debug("Shutting down Basic Memory MCP server")
await sync_coordinator.stop()
# Only shutdown DB if we created it (not if test fixture provided it)
if engine_was_none:
await db.shutdown_db()
logger.info("Database connections closed")
logger.debug("Database connections closed")
else: # pragma: no cover
logger.debug("Skipping DB shutdown - engine provided externally")