summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaTextStreamReader.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaTextStreamReader.java b/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaTextStreamReader.java
index 2b76a61..41b9275 100644
--- a/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaTextStreamReader.java
+++ b/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaTextStreamReader.java
@@ -25,6 +25,7 @@ import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
+import java.util.logging.Logger;
import javax.servlet.http.HttpServletResponse;
@@ -33,6 +34,8 @@ import com.att.nsa.cambria.backends.Publisher.message;
import com.att.nsa.cambria.beans.LogDetails;
import com.att.nsa.cambria.resources.CambriaEventSet.reader;
+import jline.internal.Log;
+
/**
* This stream reader just pulls single lines. It uses the default partition if provided. If
* not, the key is the current time, which does not guarantee ordering.
@@ -42,6 +45,7 @@ import com.att.nsa.cambria.resources.CambriaEventSet.reader;
*/
public class CambriaTextStreamReader implements reader
{
+ private Logger log = Logger.getLogger(CambriaTextStreamReader.class.toString());
/**
* This is the constructor for Cambria Text Reader format
* @param is
@@ -131,6 +135,7 @@ public class CambriaTextStreamReader implements reader
}
catch ( IOException e )
{
+ Log.error(e);
throw new CambriaApiException ( HttpServletResponse.SC_BAD_REQUEST, e.getMessage () );
}
}