diff --git a/.envrc b/.envrc index 8868ae6bf3..f39c1a503c 100644 --- a/.envrc +++ b/.envrc @@ -1,6 +1,9 @@ # Docker Compose project name - forces all containers to use "posthog" namespace export COMPOSE_PROJECT_NAME=posthog +# Suppress verbose Flox logging only (not PostHog Rust services) +export RUST_LOG="flox=error,flox_rust_sdk=error,flox_watchdog=error" + if command -v flox >/dev/null 2>&1; then # Only activate flox if installed # Capture the directory user intended to work in before any Flox operations ORIGINAL_PWD="${PWD}" diff --git a/.flox/env/manifest.toml b/.flox/env/manifest.toml index ed8a7c465e..20dfe4b892 100644 --- a/.flox/env/manifest.toml +++ b/.flox/env/manifest.toml @@ -54,6 +54,7 @@ ffmpeg.pkg-path = "ffmpeg" DEBUG = "1" POSTHOG_SKIP_MIGRATION_CHECKS = "1" DIRENV_LOG_FORMAT = "" # Disable direnv activation logging (in case direnv is present) +RUST_LOG = "flox=error,flox_rust_sdk=error,flox_watchdog=error" # Suppress Flox logs only (also set in .envrc for early activation) OPENSSL_ROOT_DIR = "$FLOX_ENV" OPENSSL_LIB_DIR = "$FLOX_ENV/lib" DOTENV_FILE = ".env" @@ -84,6 +85,9 @@ if [[ -t 0 ]] && ! command -v direnv >/dev/null 2>&1 && [ ! -f "$FLOX_ENV_CACHE/ echo fi +# Clean up old Flox log files (older than 7 days) +find "$FLOX_ENV_PROJECT/.flox/log" -name "*.log" -type f -mtime +7 -delete 2>/dev/null || true + # Ensure Python virtual environment - Python version is defined in pyproject.toml uv sync