summaryrefslogtreecommitdiffstats
path: root/src/main/java/com
diff options
context:
space:
mode:
authorvarun gudisena <vg411h@att.com>2017-09-23 00:01:31 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-23 00:01:31 +0000
commitdaf6936650d956d98e2cf318a828a37f46c3ba89 (patch)
tree5172bfa8c96d3acf829d5af5edc0c059b25432c6 /src/main/java/com
parentf91dc172779322546964fed62c10d89c45a13544 (diff)
parent2f6e13e304a5fdb6100ebb7be0a4a4ba0a7d88f5 (diff)
Merge "Fix for Sonar critical issues"
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java1
-rw-r--r--src/main/java/com/att/nsa/mr/test/clients/SimpleExampleConsumer.java7
2 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java b/src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java
index 8e1c0e0..5e6825c 100644
--- a/src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java
+++ b/src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java
@@ -82,6 +82,7 @@ public class SampleConsumer {
catch ( Exception x )
{
System.err.println ( x.getClass().getName () + ": " + x.getMessage () );
+ LOG.error("exception: ", x);
}
}
}
diff --git a/src/main/java/com/att/nsa/mr/test/clients/SimpleExampleConsumer.java b/src/main/java/com/att/nsa/mr/test/clients/SimpleExampleConsumer.java
index 3a131a0..5ae36d2 100644
--- a/src/main/java/com/att/nsa/mr/test/clients/SimpleExampleConsumer.java
+++ b/src/main/java/com/att/nsa/mr/test/clients/SimpleExampleConsumer.java
@@ -22,13 +22,14 @@
package com.att.nsa.mr.test.clients;
-
-
import java.io.File;
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;
@@ -40,6 +41,7 @@ public class SimpleExampleConsumer
static FileReader routeReader=null;
public static void main ( String[] args )
{
+ final Logger LOG = LoggerFactory.getLogger(SimpleExampleConsumer.class);
long count = 0;
long nextReport = 5000;
@@ -81,6 +83,7 @@ public class SimpleExampleConsumer
catch ( Exception x )
{
System.err.println ( x.getClass().getName () + ": " + x.getMessage () );
+ LOG.error("exception: ", x);
}
}
}