diff options
author | varun gudisena <vg411h@att.com> | 2017-09-23 00:01:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-23 00:01:48 +0000 |
commit | cc3ae1e0014324327b2110da5cd39e9ecfb182c0 (patch) | |
tree | e379097ddb0f736d4e64bf5bdbff918d6423c2b3 /src/main | |
parent | daf6936650d956d98e2cf318a828a37f46c3ba89 (diff) | |
parent | 4daa8a755697808fbaefba1010cfafd9039ed1a6 (diff) |
Merge "Fix for Sonar critical issues"
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/att/nsa/mr/test/clients/SimpleExampleConsumerWithReturnResponse.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/att/nsa/mr/test/clients/SimpleExampleConsumerWithReturnResponse.java b/src/main/java/com/att/nsa/mr/test/clients/SimpleExampleConsumerWithReturnResponse.java index b3c167b..433ab9f 100644 --- a/src/main/java/com/att/nsa/mr/test/clients/SimpleExampleConsumerWithReturnResponse.java +++ b/src/main/java/com/att/nsa/mr/test/clients/SimpleExampleConsumerWithReturnResponse.java @@ -26,12 +26,16 @@ import java.io.FileReader; import java.io.FileWriter; import java.util.Properties; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + import com.att.nsa.mr.client.MRClientFactory; import com.att.nsa.mr.client.MRConsumer; import com.att.nsa.mr.client.response.MRConsumerResponse; public class SimpleExampleConsumerWithReturnResponse { + private static final Logger LOG = LoggerFactory.getLogger(SimpleExampleConsumerWithReturnResponse.class); static FileWriter routeWriter= null; static Properties props=null; @@ -84,6 +88,7 @@ public class SimpleExampleConsumerWithReturnResponse { catch ( Exception x ) { System.err.println ( x.getClass().getName () + ": " + x.getMessage () ); + LOG.error("exception: ", x); } } |