[ML] Added cause to exception.
Relates to elastic/x-pack-elasticsearch#990
Original commit: elastic/x-pack-elasticsearch@a66bc958b7ceab9161300a0dcea70535e11557d1
@@ -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();
