Skip to content

Commit

Permalink
additional review changes
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
tvallin committed Jan 25, 2024
1 parent 755dee9 commit 380f3a6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ private static char[] generateMasterPassword() {
File file = path.toFile();
boolean readable = file.setReadable(true, true);
boolean executable = file.setWritable(true, true);
if (!readable || !executable) {
LOGGER.log(Level.DEBUG, "Could not set file permission to " + file.toPath());
if (!readable || !executable && LOGGER.isLoggable(Level.DEBUG)) {
LOGGER.log(Level.DEBUG, "Could not set file permission to " + path);
}
}
} catch (IOException e) {
Expand Down

0 comments on commit 380f3a6

Please sign in to comment.