mirror of
https://github.com/BillyOutlast/posthog.git
synced 2026-02-04 03:01:23 +01:00
chore(flox): Suppress verbose upgrade check logging and cleanup old log files (#39682)
This commit is contained in:
3
.envrc
3
.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}"
|
||||
|
||||
4
.flox/env/manifest.toml
vendored
4
.flox/env/manifest.toml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user