fix(tradein): cron-scrape.sh log to writable path + graceful tee (Refs #758) (#776)
Some checks failed
Deploy Trade-In / deploy (push) Blocked by required conditions
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / test (push) Successful in 25s
Deploy Trade-In / build-frontend (push) Successful in 24s
Deploy Trade-In / build-backend (push) Has been cancelled
Some checks failed
Deploy Trade-In / deploy (push) Blocked by required conditions
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / test (push) Successful in 25s
Deploy Trade-In / build-frontend (push) Successful in 24s
Deploy Trade-In / build-backend (push) Has been cancelled
Co-authored-by: bot-backend <bot-backend@gendsgn.local> Co-committed-by: bot-backend <bot-backend@gendsgn.local>
This commit is contained in:
parent
79a79004cf
commit
652e0df10f
1 changed files with 2 additions and 2 deletions
|
|
@ -26,10 +26,10 @@ fi
|
|||
SOURCE="${1:-all}"
|
||||
MODE="${2:-fast}"
|
||||
CONTAINER="${TRADEIN_BACKEND_CONTAINER:-tradein-backend}"
|
||||
LOG="${LOG:-/var/log/tradein-scrape.log}"
|
||||
LOG="${LOG:-/tmp/tradein-scrape.log}"
|
||||
|
||||
log() {
|
||||
echo "[$(date -u +'%Y-%m-%dT%H:%M:%SZ')] $*" | tee -a "$LOG"
|
||||
echo "[$(date -u +'%Y-%m-%dT%H:%M:%SZ')] $*" | tee -a "$LOG" 2>/dev/null || true
|
||||
}
|
||||
|
||||
# 5 якорей по районам ЕКБ. lat lon name
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue