From dc3ff4fc033f6f05187fbeb8ee07203aacaaf861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ku=C4=8Dera?= Date: Thu, 5 Sep 2024 21:41:45 +0200 Subject: [PATCH] Always extract issues from log --- machine_learning_hep/submit.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/machine_learning_hep/submit.sh b/machine_learning_hep/submit.sh index 6394ae58ef..6590293e4e 100755 --- a/machine_learning_hep/submit.sh +++ b/machine_learning_hep/submit.sh @@ -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"