Browse Source

Drop verbosity level to INFO

master
JustAnotherArchivist 1 year ago
parent
commit
49d2a78590
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      codearchiver-bot

+ 2
- 2
codearchiver-bot View File

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


Loading…
Cancel
Save