diff options
author | rama-huawei <rama.subba.reddy.s@huawei.com> | 2017-09-15 10:35:33 +0530 |
---|---|---|
committer | Rama SubbaReddy <rama.subba.reddy.s@huawei.com> | 2017-09-15 05:17:13 +0000 |
commit | 4daa8a755697808fbaefba1010cfafd9039ed1a6 (patch) | |
tree | 1e9d4ede174be244fae4c454328666cabcda7654 /src/main/java | |
parent | 2f6e13e304a5fdb6100ebb7be0a4a4ba0a7d88f5 (diff) |
Fix for Sonar critical issues
DCAEGEN2-93
Change-Id: I11749dc297e7658bb62dbc6c7d21319d418358f9
Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
Diffstat (limited to 'src/main/java')
-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); } } |