diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/att/nsa/mr/test/clients/SampleConsumer.java | 1 | ||||
-rw-r--r-- | src/main/java/com/att/nsa/mr/test/clients/SimpleExampleConsumer.java | 7 |
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); } } } |