Skip to content

Commit

Permalink
Add exception logging to log message
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Pinčuk <alexander.v.pinchuk@gmail.com>
  • Loading branch information
avpinchuk committed Aug 6, 2023
1 parent 71ca2e6 commit 81b83b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static void deploy() throws IOException {
try {
Files.deleteIfExists(warFile.toPath());
} catch (IOException e) {
LOG.log(WARNING, "An error occurred while delete file {0}", warFile.getAbsolutePath());
LOG.log(WARNING, "An error occurred while remove temporary file " + warFile.getAbsolutePath(), e);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static void deploy() throws IOException {
try {
Files.deleteIfExists(warFile.toPath());
} catch (IOException e) {
LOG.log(WARNING, "An error occurred while delete file {0}", warFile.getAbsolutePath());
LOG.log(WARNING, "An error occurred while remove temporary file " + warFile.getAbsolutePath(), e);
}

}
Expand Down

0 comments on commit 81b83b1

Please sign in to comment.