diff options
author | Daniel Trebbien <dtrebbien@gmail.com> | 2017-10-09 10:15:23 -0500 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2017-10-10 13:28:44 +0200 |
commit | 3f876238ebdfd1cce633ba2c0649752a77602968 (patch) | |
tree | bba9591fc045aea786ee5071fc3cccfd57ee1ccb /server/sonar-process/src | |
parent | 0c4ab610218ff4b7532cd6483dee150f78c1fd3e (diff) | |
download | sonarqube-3f876238ebdfd1cce633ba2c0649752a77602968.tar.gz sonarqube-3f876238ebdfd1cce633ba2c0649752a77602968.zip |
Remove two redundant calls to isTraceEnabled()
Diffstat (limited to 'server/sonar-process/src')
-rw-r--r-- | server/sonar-process/src/main/java/org/sonar/process/cluster/health/SharedHealthStateImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-process/src/main/java/org/sonar/process/cluster/health/SharedHealthStateImpl.java b/server/sonar-process/src/main/java/org/sonar/process/cluster/health/SharedHealthStateImpl.java index 632f35821b2..686aed8fee5 100644 --- a/server/sonar-process/src/main/java/org/sonar/process/cluster/health/SharedHealthStateImpl.java +++ b/server/sonar-process/src/main/java/org/sonar/process/cluster/health/SharedHealthStateImpl.java @@ -83,7 +83,7 @@ public class SharedHealthStateImpl implements SharedHealthState { private static Predicate<Map.Entry<String, TimestampedNodeHealth>> outOfDate(long timeout) { return entry -> { boolean res = entry.getValue().getTimestamp() > timeout; - if (!res && LOG.isTraceEnabled()) { + if (!res) { LOG.trace("Ignoring NodeHealth of member {} because it is too old", entry.getKey()); } return res; @@ -93,7 +93,7 @@ public class SharedHealthStateImpl implements SharedHealthState { private static Predicate<Map.Entry<String, TimestampedNodeHealth>> ofNonExistentMember(Set<String> hzMemberUUIDs) { return entry -> { boolean res = hzMemberUUIDs.contains(entry.getKey()); - if (!res && LOG.isTraceEnabled()) { + if (!res) { LOG.trace("Ignoring NodeHealth of member {} because it is not part of the cluster at the moment", entry.getKey()); } return res; |