Skip to content

Commit

Permalink
Always extract issues from log
Browse files Browse the repository at this point in the history
  • Loading branch information
vkucera committed Sep 5, 2024
1 parent 6a16b56 commit 7d50fa1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions machine_learning_hep/submit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ else
CONFIG_FILE="${DIR_THIS}/submission/${STAGE}.yml"
CMD_ANA="mlhep -a ${ANALYSIS} -r ${CONFIG_FILE} -d ${DB_DEFAULT} -b --delete"
${CMD_ANA} > "${LOG}" 2>&1
fi || {
echo "Error"
LOG_ERR="${LOG/.log/_err.log}"
echo "Grepping issues into ${LOG_ERR}"
grep -A 1 -e WARN -e ERROR -e FATAL -e CRITICAL "${LOG}" > "${LOG_ERR}"
}
fi || echo "Error"

LOG_ERR="${LOG/.log/_err.log}"
echo "Grepping issues into ${LOG_ERR}"
grep -A 1 -e WARN -e ERROR -e FATAL -e CRITICAL "${LOG}" > "${LOG_ERR}"

echo "$(date) Done"

0 comments on commit 7d50fa1

Please sign in to comment.