diff --git a/app/com/linkedin/drelephant/ElephantRunner.java b/app/com/linkedin/drelephant/ElephantRunner.java index ea2162bac..55e6a8fe2 100644 --- a/app/com/linkedin/drelephant/ElephantRunner.java +++ b/app/com/linkedin/drelephant/ElephantRunner.java @@ -423,8 +423,7 @@ public void run() { logger.warn("Timed out while fetching data. Exception message is: " + e.getMessage()); jobFate(finishTimeInfo, appType, applicableFinishTime, jobFinishTime); } catch (Exception e) { - logger.error(e.getMessage()); - logger.error(ExceptionUtils.getStackTrace(e)); + logger.error(String.format("Failed to analyze %s", analysisName), e); jobFate(finishTimeInfo, appType, applicableFinishTime, jobFinishTime); } }