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 (apache#7411)

(cherry picked from commit ef2bf98)
  • Loading branch information
sodonnel authored Nov 8, 2024
1 parent 52b20eb commit ac1e5c2
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 ac1e5c2

Please sign in to comment.