@Override public boolean isInfoEnabled() { // No way to tell log level with better granularity yet, and INFO // logging for Netty component is most likely DEBUG anyway return log.isDebugEnabled(); }
@Override public boolean isDebugEnabled() { for ( Log log : logs ) { if ( log.isDebugEnabled() ) { return true; } } return false; }
@Override public boolean isDebugEnabled() { return log.isDebugEnabled(); }
@Override public boolean isDebugEnabled() { return log.isDebugEnabled(); }
public <T> List<T> queryForNode(String query, Function<Map<String, Object>, T> transformer) { long start = currentTimeMillis(); try (Transaction tx = db.beginTx()) { try (Result nodes = db.execute(query, singletonMap("value", value))) { return nodes.stream().map(transformer).collect(Collectors.toList()); } finally { tx.success(); if (log.isDebugEnabled()) log.debug(format("(%s) search on label:%s and prop:%s took %d", Thread.currentThread(), label, prop, currentTimeMillis() - start)); } } } }
do { if (Util.transactionIsTerminated(terminationGuard)) break; if (log.isDebugEnabled()) log.debug("execute in batch no " + batches + " batch size " + batchsize); List<Map<String,Object>> batch = Util.take(iterator, batchsize); long currentBatchSize = batch.size();
@Override public boolean isDebugEnabled() { for ( Log log : logs ) { if ( log.isDebugEnabled() ) { return true; } } return false; }
@Override public boolean isInfoEnabled() { // No way to tell log level with better granularity yet, and INFO // logging for Netty component is most likely DEBUG anyway return log.isDebugEnabled(); }
@Override public boolean isDebugEnabled() { return log.isDebugEnabled(); }
@Override public boolean isDebugEnabled() { return log.isDebugEnabled(); }
@Override public boolean isDebugEnabled() { return log.isDebugEnabled(); } };
@Override public boolean isDebugEnabled() { return inner.isDebugEnabled(); }
if ( log.isDebugEnabled() || !f.isSuccess() )
if (log != null && log.isDebugEnabled()) { log.debug( "PageRank: nodes=%d, concurrency=%d, available memory=%s, estimated memory usage: %s",
if (log != null && log.isDebugEnabled()) { log.debug( "PageRank: nodes=%d, concurrency=%d, available memory=%s, estimated memory usage: %s",
private long handleOperations( long commandIndex, List<DistributedOperation> operations ) { try ( CommandDispatcher dispatcher = coreState.commandDispatcher() ) { for ( DistributedOperation operation : operations ) { if ( !sessionTracker.validateOperation( operation.globalSession(), operation.operationId() ) ) { if ( log.isDebugEnabled() ) { log.debug( "Skipped an invalid distributed operation: " + operation + ". Session tracker state: " + sessionTracker.snapshot() ); } commandIndex++; continue; } CoreReplicatedContent command = (CoreReplicatedContent) operation.content(); command.dispatch( dispatcher, commandIndex, result -> progressTracker.trackResult( operation, result ) ); sessionTracker.update( operation.globalSession(), operation.operationId(), commandIndex ); commandIndex++; } } return commandIndex - 1; }