Include underlying exceptions when logging failures to write exit files

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2023-08-17 12:32:45 -04:00
1 parent 5c31ef43c9
commit ed0a723fef
1 file changed
+1 -1
@@ -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);
}
}
}