Skip to content

Commit 10863ed

Browse files
committed
Removed useless test on LOG.isDebugEnabled
Signed-off-by: Laurent Klock <[email protected]>
1 parent 51b28ac commit 10863ed

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

service/src/main/java/crawlercommons/urlfrontier/service/rocksdb/RocksDBService.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -943,9 +943,7 @@ public URLItem next() {
943943
final String schedulingKey =
944944
new String(rocksIterator.value(), StandardCharsets.UTF_8);
945945

946-
if (LOG.isDebugEnabled()) {
947946
LOG.debug("current key {}, schedulingKey={}", currentKey, schedulingKey);
948-
}
949947

950948
byte[] scheduled = null;
951949
try {
@@ -970,9 +968,7 @@ public URLItem next() {
970968
LOG.error(e.getMessage(), e);
971969
}
972970
} else {
973-
if (LOG.isDebugEnabled()) {
974971
LOG.debug("no schedule for {}", currentKey);
975-
}
976972

977973
final int pos1 = currentKey.indexOf('_');
978974
final int pos2 = currentKey.indexOf('_', pos1 + 1);

0 commit comments

Comments
 (0)