diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-04-24 16:41:44 +0200 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-04-24 16:46:19 +0200 |
commit | de4e6c93f2f4038167e8b5fef92426c4daac4b83 (patch) | |
tree | c3c99b6cfaa74ab80009486ef013dbf0bc26526e /src/main/java/org/onap/aai/modelloader/restclient/BabelServiceClientImpl.java | |
parent | 93a7defb8a10ac29f97d3cfd860ca12a629bdc41 (diff) |
Improve error logging1.14.0
- do not log csar payload to babel on info level
- log exception when PUT to aai-resources fails
Issue-ID: AAI-3834
Change-Id: I524315465c79165755fb9b8062f29f4f10d876ab
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'src/main/java/org/onap/aai/modelloader/restclient/BabelServiceClientImpl.java')
-rw-r--r-- | src/main/java/org/onap/aai/modelloader/restclient/BabelServiceClientImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/onap/aai/modelloader/restclient/BabelServiceClientImpl.java b/src/main/java/org/onap/aai/modelloader/restclient/BabelServiceClientImpl.java index 474fcc6..63bd7e9 100644 --- a/src/main/java/org/onap/aai/modelloader/restclient/BabelServiceClientImpl.java +++ b/src/main/java/org/onap/aai/modelloader/restclient/BabelServiceClientImpl.java @@ -57,8 +57,8 @@ public class BabelServiceClientImpl implements BabelServiceClient { @Override public List<BabelArtifact> postArtifact(BabelRequest babelRequest, String transactionId) throws BabelServiceClientException { - if (logger.isInfoEnabled()) { - logger.info(ModelLoaderMsgs.BABEL_REST_REQUEST_PAYLOAD, " Artifact Name: " + babelRequest.getArtifactName() + if (logger.isDebugEnabled()) { + logger.debug(ModelLoaderMsgs.BABEL_REST_REQUEST_PAYLOAD, " Artifact Name: " + babelRequest.getArtifactName() + " Artifact version: " + babelRequest.getArtifactVersion() + " Artifact payload: " + babelRequest.getCsar()); } |