From 33899ad9defa2e584dcd9083d83ad0c30f1a75da Mon Sep 17 00:00:00 2001 From: drivenflywheel Date: Tue, 17 Sep 2024 17:25:54 +0000 Subject: [PATCH] Shortening the logged message if an exception occurs during Executrix execution --- src/main/java/emissary/util/shell/Executrix.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/emissary/util/shell/Executrix.java b/src/main/java/emissary/util/shell/Executrix.java index 7dd985e306..70ab97212d 100755 --- a/src/main/java/emissary/util/shell/Executrix.java +++ b/src/main/java/emissary/util/shell/Executrix.java @@ -861,9 +861,9 @@ private int execute(ExecuteConfig eConfig) { stdErrThread.finish(); exitValue = p.exitValue(); } catch (IOException e) { - logger.warn("Exec exception, args={}", Arrays.asList(eConfig.getCmd()), e); + logger.warn("Failure during execution: {}, external command={}", e, Arrays.asList(eConfig.getCmd())); } catch (InterruptedException e) { - logger.warn("Interrupted exception, args={}", Arrays.asList(eConfig.getCmd()), e); + logger.warn("Interrupted during execution: {}, external command={}", e, Arrays.asList(eConfig.getCmd())); Thread.currentThread().interrupt(); } finally { if (dog != null) {