chore(flox): Suppress verbose upgrade check logging and cleanup old log files (#39682)

This commit is contained in:
Phil Haack
2025-10-14 18:54:26 -07:00
committed by GitHub
parent 1fa8ca8707
commit f41461e177
2 changed files with 7 additions and 0 deletions

3
.envrc
View File

@@ -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}"

View File

@@ -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