X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=influxlogger%2Fsrc%2Fmain%2Fjava%2Forg%2Foran%2Fpmlog%2Fclients%2FAsyncRestClient.java;h=078b073d4d60060c8eb400c9c726e1ab0ee1cb97;hb=5a2b5a8c4af4e390224db81fa546c780b7ab265c;hp=43961e8e833ff1b79fd443c85cde9d7cb08da902;hpb=54c8fecebbb5e19010e56eddf3aba8e127e0abc3;p=nonrtric%2Fplt%2Franpm.git diff --git a/influxlogger/src/main/java/org/oran/pmlog/clients/AsyncRestClient.java b/influxlogger/src/main/java/org/oran/pmlog/clients/AsyncRestClient.java index 43961e8..078b073 100644 --- a/influxlogger/src/main/java/org/oran/pmlog/clients/AsyncRestClient.java +++ b/influxlogger/src/main/java/org/oran/pmlog/clients/AsyncRestClient.java @@ -145,8 +145,7 @@ public class AsyncRestClient { } private void onError(Throwable t) { - if (t instanceof WebClientResponseException) { - WebClientResponseException e = (WebClientResponseException) t; + if (t instanceof WebClientResponseException e) { logger.debug("Response error: {}", e.getResponseBodyAsString()); } }