Skip to content

Commit

Permalink
In JobCompletionService log job ID with error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mprimi committed Nov 20, 2017
1 parent 15b79df commit b0a0dc8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ private void cleanupProcesses(final String jobId) {
});
}
} catch (final GenieException ge) {
log.error("Unable to cleanup process for job due to exception. {}", jobId, ge);
log.error("Unable to cleanup process for job {} due to exception.", jobId, ge);
incrementErrorCounter("JOB_CLEANUP_FAILURE", ge);
} catch (Throwable t) {
incrementErrorCounter("JOB_PROCESS_CLEANUP_FAILURE", t);
Expand Down Expand Up @@ -546,7 +546,7 @@ private boolean processJobDir(final Job job) throws GenieException, IOException
try {
this.executor.execute(commandLine);
} catch (Throwable t) {
log.warn("Failed to created archive of job files", t);
log.warn("Failed to created archive of job files for job: {}", jobId, t);
incrementErrorCounter("JOB_ARCHIVAL_FAILURE", t);
throw t;
}
Expand Down

0 comments on commit b0a0dc8

Please sign in to comment.