Update logging
This commit is contained in:
parent
ebf2241b82
commit
b2191f9ec6
2
pom.xml
2
pom.xml
@ -99,7 +99,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.warp</groupId>
|
<groupId>org.warp</groupId>
|
||||||
<artifactId>common-utils</artifactId>
|
<artifactId>common-utils</artifactId>
|
||||||
<version>1.1.6</version>
|
<version>1.1.7</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.projectreactor</groupId>
|
<groupId>io.projectreactor</groupId>
|
||||||
|
@ -26,12 +26,12 @@ import io.net5.buffer.api.internal.ResourceSupport;
|
|||||||
import it.cavallium.dbengine.database.LLSearchResultShard;
|
import it.cavallium.dbengine.database.LLSearchResultShard;
|
||||||
import it.cavallium.dbengine.database.collections.DatabaseSingle;
|
import it.cavallium.dbengine.database.collections.DatabaseSingle;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import org.warp.commonutils.log.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.warp.commonutils.log.LoggerFactory;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
public final class DataBlock extends ResourceSupport<DataBlock, DataBlock> {
|
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<>() {
|
private static final Drop<DataBlock> DROP = new Drop<>() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -24,15 +24,15 @@ import java.util.List;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
import org.warp.commonutils.log.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.warp.commonutils.log.LoggerFactory;
|
import org.apache.logging.log4j.Logger;
|
||||||
import reactor.core.publisher.Flux;
|
import reactor.core.publisher.Flux;
|
||||||
import reactor.core.publisher.Mono;
|
import reactor.core.publisher.Mono;
|
||||||
import reactor.core.scheduler.Schedulers;
|
import reactor.core.scheduler.Schedulers;
|
||||||
|
|
||||||
public class FileSponge implements URLsHandler {
|
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
|
public static final int BLOCK_SIZE = 1024 * 1024; // 1 MiB
|
||||||
|
|
||||||
|
@ -25,8 +25,8 @@ import java.time.Duration;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.NoSuchElementException;
|
import java.util.NoSuchElementException;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import org.warp.commonutils.log.Logger;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.warp.commonutils.log.LoggerFactory;
|
import org.apache.logging.log4j.Logger;
|
||||||
import reactor.core.Exceptions;
|
import reactor.core.Exceptions;
|
||||||
import reactor.core.publisher.Flux;
|
import reactor.core.publisher.Flux;
|
||||||
import reactor.core.publisher.Mono;
|
import reactor.core.publisher.Mono;
|
||||||
@ -34,7 +34,7 @@ import reactor.core.scheduler.Schedulers;
|
|||||||
|
|
||||||
public class FileSpongeUtils {
|
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) {
|
public static <T> Mono<T> firstWithValueMono(List<Mono<T>> monos) {
|
||||||
return Mono.firstWithValue(monos).onErrorResume(FileSpongeUtils::ignoreFakeErrors);
|
return Mono.firstWithValue(monos).onErrorResume(FileSpongeUtils::ignoreFakeErrors);
|
||||||
|
Loading…
Reference in New Issue
Block a user