Explorar el Código

Drop verbosity level to INFO

master
JustAnotherArchivist hace 1 año
padre
commit
49d2a78590
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      codearchiver-bot

+ 2
- 2
codearchiver-bot Ver fichero

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


Cargando…
Cancelar
Guardar