Skip to content

Commit

Permalink
Added logging whether the temporary file is deleted or not [comixed#354]
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpierce committed Jun 27, 2020
1 parent d881b5d commit 5b5336f
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -69,8 +69,11 @@ private void addFileToArchive(SevenZOutputFile archive, String filename, byte[]
archive.write(content);
archive.closeArchiveEntry();

log.debug("Cleaning up the temporary file");
tempFile.delete();
if (tempFile.delete()) {
log.debug("Cleaning up the temporary file");
} else {
log.debug("Failed to delete temporary file: {}", tempFile.getAbsolutePath());
}
}

@Override
Expand Down

0 comments on commit 5b5336f

Please sign in to comment.