Code Review
/
nonrtric
/
plt
/
ranpm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Improve Test coverage of InfluxLogger Issue-ID: NONRTRIC-875"
[nonrtric/plt/ranpm.git]
/
influxlogger
/
src
/
main
/
java
/
org
/
oran
/
pmlog
/
clients
/
AsyncRestClient.java
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
106b68e
..
078b073
100644
(file)
--- a/
influxlogger/src/main/java/org/oran/pmlog/clients/AsyncRestClient.java
+++ b/
influxlogger/src/main/java/org/oran/pmlog/clients/AsyncRestClient.java
@@
-29,6
+29,7
@@
import java.lang.invoke.MethodHandles;
import java.util.concurrent.atomic.AtomicInteger;
import org.oran.pmlog.configuration.WebClientConfig.HttpProxyConfig;
import java.util.concurrent.atomic.AtomicInteger;
import org.oran.pmlog.configuration.WebClientConfig.HttpProxyConfig;
+import org.oran.pmlog.oauth2.SecurityContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.MediaType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.MediaType;
@@
-144,8
+145,7
@@
public class AsyncRestClient {
}
private void onError(Throwable t) {
}
private void onError(Throwable t) {
- if (t instanceof WebClientResponseException) {
- WebClientResponseException e = (WebClientResponseException) t;
+ if (t instanceof WebClientResponseException e) {
logger.debug("Response error: {}", e.getResponseBodyAsString());
}
}
logger.debug("Response error: {}", e.getResponseBodyAsString());
}
}