aboutsummaryrefslogtreecommitdiffstats
path: root/documentapi/src/main/java/com/yahoo/documentapi/ProgressToken.java
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2020-04-24 19:14:32 +0200
committergjoranv <gv@verizonmedia.com>2020-04-25 02:24:38 +0200
commitf94cc116fffbf88ac70e603f91b4561ad743174f (patch)
tree12e1eb0655794787fa45b993fab26cdb2ad8cec6 /documentapi/src/main/java/com/yahoo/documentapi/ProgressToken.java
parent91902bc7a20d8e6af77219e38fb645649610cd5e (diff)
LogLevel -> Level for isLoggable()
Diffstat (limited to 'documentapi/src/main/java/com/yahoo/documentapi/ProgressToken.java')
-rw-r--r--documentapi/src/main/java/com/yahoo/documentapi/ProgressToken.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/documentapi/src/main/java/com/yahoo/documentapi/ProgressToken.java b/documentapi/src/main/java/com/yahoo/documentapi/ProgressToken.java
index b7c78e28dbe..7e579a3ae6a 100644
--- a/documentapi/src/main/java/com/yahoo/documentapi/ProgressToken.java
+++ b/documentapi/src/main/java/com/yahoo/documentapi/ProgressToken.java
@@ -305,7 +305,7 @@ public class ProgressToken {
&& !progress.equals(FINISHED_BUCKET)
&& !superbucket.contains(progress)
&& !progress.contains(superbucket)) {
- if (log.isLoggable(LogLevel.DEBUG)) {
+ if (log.isLoggable(Level.FINE)) {
log.log(Level.FINE, "updateProgress called with non-contained bucket "
+ "pair " + superbucket + ":" + progress + ", but allowing anyway");
}
@@ -322,7 +322,7 @@ public class ProgressToken {
// If progress == Integer.MAX_VALUE, we're done. Otherwise, we're not
if (!progress.equals(FINISHED_BUCKET)) {
if (entry.getState() != BucketState.BUCKET_ACTIVE) {
- if (log.isLoggable(LogLevel.DEBUG)) {
+ if (log.isLoggable(Level.FINE)) {
log.log(Level.FINE, "updateProgress called with sub-bucket that was "
+ "not marked as active " + superbucket + ":" + progress);
}
@@ -361,13 +361,13 @@ public class ProgressToken {
*/
protected void addBucket(BucketId superbucket, BucketId progress, BucketState state) {
if (progress.equals(FINISHED_BUCKET)) {
- if (log.isLoggable(LogLevel.DEBUG)) {
+ if (log.isLoggable(Level.FINE)) {
log.log(Level.FINE, "Trying to add already finished superbucket "
+ superbucket + "; ignoring it");
}
return;
}
- if (log.isLoggable(LogLevel.SPAM)) {
+ if (log.isLoggable(Level.FINEST)) {
log.log(Level.FINEST, "Adding bucket pair " + superbucket
+ ":" + progress + " with state " + state);
}
@@ -789,13 +789,13 @@ public class ProgressToken {
// Must not merge if sibling isn't pending
if (rightSibling != null) {
assert(rightSibling.getState() == BucketState.BUCKET_PENDING);
- if (log.isLoggable(LogLevel.SPAM)) {
+ if (log.isLoggable(Level.FINEST)) {
log.log(Level.FINEST, "Merging " + bucket + " with rhs " + rightCheck);
}
// If right sibling has progress, it will unfortunately have to
// be discarded
if (rightSibling.getProgress().getUsedBits() != 0
- && log.isLoggable(LogLevel.DEBUG)) {
+ && log.isLoggable(Level.FINE)) {
log.log(Level.FINE, "Bucket progress for " + rightCheck +
" will be lost due to merging; potential for duplicates in result-set");
}