|
|
@@ -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}" |
|
|
|