Include underlying exceptions when logging failures to write exit files

This commit is contained in:
Jon Chambers 2023-08-17 10:38:03 -04:00 committed by Jon Chambers
parent 5c31ef43c9
commit ed0a723fef
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class CommandStopListener implements Managed {
writer.write("stopped");
}
} catch (final IOException e) {
logger.error("Failed to open file {}", path);
logger.error("Failed to open file {}", path, e);
}
}
}