fix: remove --reload from run.sh (breaks stderr capture), fix reason/reflect level to INFO
- run.sh: removed --reload flag from uvicorn — reload subprocess breaks the 2>&1 pipe and all JSON logs from superset_tools_app are lost. Added comment with alternative for hot-reload. - core/logger.py: reason() and reflect() now use self.info() instead of self.debug() — per molecular CoT protocol these are INFO-level bonds. DEBUG is reserved for high-frequency loops only.
This commit is contained in:
5
run.sh
5
run.sh
@@ -205,7 +205,10 @@ start_backend() {
|
||||
uvicorn_env_args=(--env-file .env)
|
||||
fi
|
||||
# Use a subshell to prefix output
|
||||
python3 -m uvicorn src.app:app --reload --port "$BACKEND_PORT" "${uvicorn_env_args[@]}" 2>&1 | sed "s/^/$(echo -e '\033[0;34m[Backend]\033[0m ') /" &
|
||||
# NOTE: --reload breaks stderr capture (subprocess child loses the 2>&1 pipe).
|
||||
# For hot-reload during development, run uvicorn directly instead:
|
||||
# cd backend && source .venv/bin/activate && uvicorn src.app:app --reload --port 8000
|
||||
python3 -m uvicorn src.app:app --port "$BACKEND_PORT" "${uvicorn_env_args[@]}" 2>&1 | sed "s/^/$(echo -e '\033[0;34m[Backend]\033[0m ') /" &
|
||||
BACKEND_PID=$!
|
||||
cd ..
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user