Skip to content

Commit

Permalink
Shortening the logged message if an exception occurs during Executrix…
Browse files Browse the repository at this point in the history
… execution
  • Loading branch information
drivenflywheel committed Sep 17, 2024
1 parent 11b64f6 commit 33899ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/emissary/util/shell/Executrix.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 33899ad

Please sign in to comment.