Skip to content

Commit

Permalink
Improve error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mwperina committed May 9, 2022
1 parent 30fc8db commit 359361f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private void checkExecutionTimeStamp() {
.creationTime()
.to(TimeUnit.DAYS);
} catch (IOException e) {
log.error("Failed to read file attributes: {}", file.toPath());
log.error("Failed to read file '{}' attributes: {}", file.getAbsolutePath(), e.getMessage());
log.debug("Exception: ", e);
return;
}
Expand All @@ -66,7 +66,7 @@ private void checkExecutionTimeStamp() {
.map(Path::toFile)
.forEach(File::delete);
} catch (IOException e) {
log.error("Failed to delete dir content: {}", file.getAbsolutePath());
log.error("Failed to delete dir '{}' content: {}", file.getAbsolutePath(), e.getMessage());
log.debug("Exception: ", e);
}
}
Expand Down

0 comments on commit 359361f

Please sign in to comment.