diff options
author | varun gudisena <vg411h@att.com> | 2017-09-23 00:00:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-23 00:00:28 +0000 |
commit | 78ed9e0f89d412abad4b4d1f68dc37afa808d348 (patch) | |
tree | a5ebfadcb58972f8df6a9ffd7fd1ad9676a31b83 /src/main/java | |
parent | bb535ba3ecad3385eeb3d16adb2337a326270feb (diff) | |
parent | 646ebf1d617a028ba64423400e1e322115a8a782 (diff) |
Merge "Fix for Sonar critical issues"
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java b/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java index ad925b1..398558d 100644 --- a/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java +++ b/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java @@ -40,6 +40,9 @@ import java.util.zip.GZIPOutputStream; import javax.ws.rs.core.MultivaluedMap; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + import org.apache.http.HttpException; import org.apache.http.HttpStatus; import org.json.JSONArray; @@ -54,6 +57,8 @@ import com.att.nsa.mr.test.clients.ProtocolTypeConstants; public class MRSimplerBatchPublisher extends MRBaseClient implements MRBatchingPublisher { + private static final Logger logger = LoggerFactory.getLogger(MRSimplerBatchPublisher.class); + public static class Builder { public Builder () @@ -512,6 +517,7 @@ public class MRSimplerBatchPublisher extends MRBaseClient implements MRBatchingP pubResponse.setResponseCode(String.valueOf(HttpStatus.SC_INTERNAL_SERVER_ERROR)); pubResponse.setResponseMessage(x.getMessage()); + logger.error("exception: ", x); } @@ -684,7 +690,7 @@ private MRPublisherResponse createMRPublisherResponse(String reply, MRPublisherR private String handlers; private Properties props; public static String routerFilePath; - public static Map<String, String> headers=new HashMap<String, String>(); + protected static final Map<String, String> headers=new HashMap<String, String>(); public static MultivaluedMap<String, Object> headersMap; |