Commit 35db2704 authored by Georg Mittendorfer's avatar Georg Mittendorfer

Make log less verbose in case of timeout exception.

parent 78bbfaea
Pipeline #69268114 passed with stage
in 4 minutes and 22 seconds
......@@ -26,6 +26,8 @@ import org.springframework.http.ResponseEntity;
import org.springframework.web.reactive.function.client.WebClient;
import reactor.core.publisher.Mono;
import java.util.concurrent.TimeoutException;
import static java.util.logging.Level.FINE;
import static reactor.core.publisher.SignalType.ON_NEXT;
......@@ -37,7 +39,7 @@ public class NodeClient {
public Mono<ResponseEntity<String>> post(Node node, IriCommand command) {
return exchange(node, command)
.doOnError(e -> logger.warn("Command [{}] on Node [{}] failed: {}", command.getCommand(), node.getName(), e.toString()));
.doOnError(e -> logger.warn("Command [{}] on Node [{}] failed: {}", command.getCommand(), node.getName(), e instanceof TimeoutException ? "Timeout" : e.toString()));
}
public <T> Mono<T> retrieve(Node node, IriCommand command, Class<T> responseType) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment