Skip to content

Commit

Permalink
Merge pull request kagkarlsson#90 from alex859/log-task-name-on-failure
Browse files Browse the repository at this point in the history
Log task name on failure
  • Loading branch information
kagkarlsson authored Feb 24, 2020
2 parents 1acd0a1 + 6e47aa5 commit dd58dab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,12 @@ private void executePickedExecution(Execution execution) {
statsRegistry.register(StatsRegistry.ExecutionStatsEvent.COMPLETED);

} catch (RuntimeException unhandledException) {
LOG.error("Unhandled exception during execution. Treating as failure.", unhandledException);
LOG.error("Unhandled exception during execution of task with name '{}'. Treating as failure.", task.get().getName(), unhandledException);
failure(task.get().getFailureHandler(), execution, unhandledException, executionStarted);
statsRegistry.register(StatsRegistry.ExecutionStatsEvent.FAILED);

} catch (Throwable unhandledError) {
LOG.error("Error during execution. Treating as failure.", unhandledError);
LOG.error("Error during execution of task with name '{}'. Treating as failure.", task.get().getName(), unhandledError);
failure(task.get().getFailureHandler(), execution, unhandledError, executionStarted);
statsRegistry.register(StatsRegistry.ExecutionStatsEvent.FAILED);
}
Expand Down

0 comments on commit dd58dab

Please sign in to comment.