From 8d403963b1e62e9fdfcb42d8320f69761afaff91 Mon Sep 17 00:00:00 2001 From: Julien WITTOUCK Date: Thu, 19 Dec 2019 19:30:48 +0100 Subject: [PATCH] :loud_sound: : log error when a job fails --- src/main/java/io/codeka/gaia/runner/DockerRunner.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/io/codeka/gaia/runner/DockerRunner.java b/src/main/java/io/codeka/gaia/runner/DockerRunner.java index 165551d69..98d208295 100644 --- a/src/main/java/io/codeka/gaia/runner/DockerRunner.java +++ b/src/main/java/io/codeka/gaia/runner/DockerRunner.java @@ -89,8 +89,10 @@ int runContainerForJob(JobWorkflow jobWorkflow, String script) { return Math.toIntExact(containerExit.statusCode()); } catch (InterruptedException e) { Thread.currentThread().interrupt(); + LOG.error("Interrupted Exception", e); return 99; } catch (DockerException | IOException | StackRunnerException e) { + LOG.error("Exception when running job", e); return 99; } }