aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorrama-huawei <rama.subba.reddy.s@huawei.com>2017-09-14 14:31:46 +0530
committerRama SubbaReddy <rama.subba.reddy.s@huawei.com>2017-09-14 09:06:10 +0000
commit958e512dc08a2a2427b613e8f9c24c72905bb701 (patch)
treea09f0587564cd0b8395f5fa6108c78a76c079e3a /src/main
parent8ce1fcc98dd09c76a8d696e7dfa479c9cea2f9d4 (diff)
Fix for Sonar critical issues
DCAEGEN2-93 Change-Id: I65ba03cca99c1aa5a845f6b5c026087a85eba2ba Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/att/nsa/mr/client/impl/MRMetaClient.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/impl/MRMetaClient.java b/src/main/java/com/att/nsa/mr/client/impl/MRMetaClient.java
index d32a7ef..609540b 100644
--- a/src/main/java/com/att/nsa/mr/client/impl/MRMetaClient.java
+++ b/src/main/java/com/att/nsa/mr/client/impl/MRMetaClient.java
@@ -31,6 +31,9 @@ import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import com.att.nsa.apiClient.credentials.ApiCredential;
import com.att.nsa.apiClient.http.HttpException;
import com.att.nsa.apiClient.http.HttpObjectNotFoundException;
@@ -39,6 +42,7 @@ import com.att.nsa.mr.client.MRTopicManager;
public class MRMetaClient extends MRBaseClient implements MRTopicManager, MRIdentityManager
{
+ private static final Logger logger = LoggerFactory.getLogger(MRMetaClient.class);
public MRMetaClient ( Collection<String> baseUrls ) throws MalformedURLException
{
super ( baseUrls );
@@ -60,10 +64,12 @@ public class MRMetaClient extends MRBaseClient implements MRTopicManager, MRIden
catch ( HttpObjectNotFoundException e )
{
getLog().warn ( "No /topics endpoint on service." );
+ logger.error("HttpObjectNotFoundException: ", e);
}
catch ( JSONException e )
{
getLog().warn ( "Bad /topics result from service." );
+ logger.error("JSONException: ", e);
}
catch ( HttpException e )
{