소스 검색

Drop verbosity level to INFO

master
JustAnotherArchivist 1 년 전
부모
커밋
49d2a78590
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      codearchiver-bot

+ 2
- 2
codearchiver-bot 파일 보기

@@ -157,12 +157,12 @@ function respond {

# Run codearchiver, duplicating WARNINGs and higher in the bot output
log "Running ${url}, logging into ${logname}"
codearchiver -vv "${url}" 2> >(tee "${logname}" | grep -Fv -e ' INFO ' -e ' DEBUG ' | log_loop "From codearchiver ${singlejobid}: ")
codearchiver --verbose "${url}" 2> >(tee "${logname}" | grep -Fv -e ' INFO ' | log_loop "From codearchiver ${singlejobid}: ")
status="$?"
log "codearchiver ${url} finished with status code ${status}"
statuscodes+=("${status}")
#TODO Integrate this into the pipe from codearchiver above to avoid rereading the entire log file
declare -i badcount=$(awk '! ($3 ~ /^(DEBUG|INFO)$/) { cnt += 1; } END { printf "%d\n", cnt; }' "${logname}")
declare -i badcount=$(awk '! ($3 ~ /^INFO$/) { cnt += 1; } END { printf "%d\n", cnt; }' "${logname}")

# Compress log file with zstd -19
log "Compressing log file ${logname}"


불러오는 중...
취소
저장