Skip to content

Commit

Permalink
HDDS-11669. In OmUtils.normalizeKey isDebugEnabled should be evaluate…
Browse files Browse the repository at this point in the history
…d first (#7411)
  • Loading branch information
sodonnel authored Nov 8, 2024
1 parent a7e3014 commit ef2bf98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ public static String normalizeKey(String keyName,
normalizedKeyName = new Path(OM_KEY_PREFIX + keyName)
.toUri().getPath();
}
if (!keyName.equals(normalizedKeyName) && LOG.isDebugEnabled()) {
if (LOG.isDebugEnabled() && !keyName.equals(normalizedKeyName)) {
LOG.debug("Normalized key {} to {} ", keyName,
normalizedKeyName.substring(1));
}
Expand Down

0 comments on commit ef2bf98

Please sign in to comment.