We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9be9133 commit 3a4554fCopy full SHA for 3a4554f
Utilities/Tools/jobutils.sh
@@ -193,6 +193,10 @@ taskwrapper() {
193
# basically --> send kill to all children
194
if [ "$RC" != "" -a "$RC" != "0" ]; then
195
echo "Detected critical problem in logfile $logfile"
196
+ if [ "${JOBUTILS_PRINT_ON_ERROR}" ]; then
197
+ grepcommand="grep -H -A 2 -B 2 ${pattern} $logfile ${JOBUTILS_JOB_SUPERVISEDFILES}"
198
+ eval ${grepcommand}
199
+ fi
200
201
# this gives some possibility to customize the wrapper
202
# and do some special task at the start. The hook takes 2 arguments:
0 commit comments