[ML] Added cause to exception.

Relates to elastic/x-pack-elasticsearch#990

Original commit: elastic/x-pack-elasticsearch@a66bc958b7
This commit is contained in:
Martijn van Groningen 2017-04-06 16:34:10 +02:00
parent 97866eb0e8
commit 5585283216
1 changed files with 2 additions and 3 deletions

View File

@ -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();