append logging and clear logging in main loop

This commit is contained in:
Yanxin Lu
2026-02-22 14:21:10 -08:00
parent d91d206c22
commit ef92820954
2 changed files with 5 additions and 1 deletions

View File

@@ -2,4 +2,4 @@
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
LOG_FILE="$SCRIPT_DIR/news_digest.log"
uv run --python 3.12 --with-requirements "$SCRIPT_DIR/requirements.txt" "$SCRIPT_DIR/main.py" -v "$@" 2>"$LOG_FILE"
uv run --python 3.12 --with-requirements "$SCRIPT_DIR/requirements.txt" "$SCRIPT_DIR/main.py" -v "$@" 2>>"$LOG_FILE"