From 5585283216eec459a117b058983b950a96a7b0ad Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Thu, 6 Apr 2017 16:34:10 +0200 Subject: [PATCH] [ML] Added cause to exception. Relates to elastic/x-pack-elasticsearch#990 Original commit: elastic/x-pack-elasticsearch@a66bc958b7ceab9161300a0dcea70535e11557d1 --- .../ml/job/process/autodetect/NativeAutodetectProcess.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/NativeAutodetectProcess.java b/plugin/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/NativeAutodetectProcess.java index ed594403f5b..ed4c6582f95 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/NativeAutodetectProcess.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/NativeAutodetectProcess.java @@ -148,10 +148,9 @@ class NativeAutodetectProcess implements AutodetectProcess { } LOGGER.debug("[{}] Autodetect process exited", jobId); } catch (ExecutionException | TimeoutException e) { - LOGGER.warn(new ParameterizedMessage("[{}] Exception closing the running autodetect process", - new Object[] { jobId }), e); + LOGGER.warn(new ParameterizedMessage("[{}] Exception closing the running autodetect process", jobId), e); } catch (InterruptedException e) { - LOGGER.warn("[{}] Exception closing the running autodetect process", jobId); + LOGGER.warn(new ParameterizedMessage("[{}] Exception closing the running autodetect process", jobId), e); Thread.currentThread().interrupt(); } finally { deleteAssociatedFiles();