Update logging

This commit is contained in:
Andrea Cavalli 2022-01-04 12:59:21 +01:00
parent ebf2241b82
commit b2191f9ec6
4 changed files with 10 additions and 10 deletions

View File

@ -99,7 +99,7 @@
<dependency>
<groupId>org.warp</groupId>
<artifactId>common-utils</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>

View File

@ -26,12 +26,12 @@ import io.net5.buffer.api.internal.ResourceSupport;
import it.cavallium.dbengine.database.LLSearchResultShard;
import it.cavallium.dbengine.database.collections.DatabaseSingle;
import java.util.Objects;
import org.warp.commonutils.log.Logger;
import org.warp.commonutils.log.LoggerFactory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public final class DataBlock extends ResourceSupport<DataBlock, DataBlock> {
private static final Logger logger = LoggerFactory.getLogger(DataBlock.class);
private static final Logger logger = LogManager.getLogger(DataBlock.class);
private static final Drop<DataBlock> DROP = new Drop<>() {
@Override

View File

@ -24,15 +24,15 @@ import java.util.List;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicBoolean;
import org.warp.commonutils.log.Logger;
import org.warp.commonutils.log.LoggerFactory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import reactor.core.scheduler.Schedulers;
public class FileSponge implements URLsHandler {
private static final Logger logger = LoggerFactory.getLogger(FileSponge.class);
private static final Logger logger = LogManager.getLogger(FileSponge.class);
public static final int BLOCK_SIZE = 1024 * 1024; // 1 MiB

View File

@ -25,8 +25,8 @@ import java.time.Duration;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.concurrent.TimeUnit;
import org.warp.commonutils.log.Logger;
import org.warp.commonutils.log.LoggerFactory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import reactor.core.Exceptions;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@ -34,7 +34,7 @@ import reactor.core.scheduler.Schedulers;
public class FileSpongeUtils {
private static final Logger logger = LoggerFactory.getLogger(FileSponge.class);
private static final Logger logger = LogManager.getLogger(FileSponge.class);
public static <T> Mono<T> firstWithValueMono(List<Mono<T>> monos) {
return Mono.firstWithValue(monos).onErrorResume(FileSpongeUtils::ignoreFakeErrors);