streams-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfrank...@apache.org
Subject [3/6] git commit: Added statement to log exception
Date Thu, 04 Sep 2014 19:42:05 GMT
Added statement to log exception


Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/a6286765
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/a6286765
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/a6286765

Branch: refs/heads/master
Commit: a6286765303267dca25e6302f99b673e78f12832
Parents: e7b9033
Author: Ryan Ebanks <rebanks@Informations-MacBook-Pro-3.local>
Authored: Wed Aug 27 13:09:27 2014 -0500
Committer: Ryan Ebanks <rebanks@Informations-MacBook-Pro-3.local>
Committed: Wed Aug 27 13:09:27 2014 -0500

----------------------------------------------------------------------
 .../streams/facebook/processor/FacebookTypeConverter.java     | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/a6286765/streams-contrib/streams-provider-facebook/src/main/java/org/apache/streams/facebook/processor/FacebookTypeConverter.java
----------------------------------------------------------------------
diff --git a/streams-contrib/streams-provider-facebook/src/main/java/org/apache/streams/facebook/processor/FacebookTypeConverter.java
b/streams-contrib/streams-provider-facebook/src/main/java/org/apache/streams/facebook/processor/FacebookTypeConverter.java
index e160c77..d247e51 100644
--- a/streams-contrib/streams-provider-facebook/src/main/java/org/apache/streams/facebook/processor/FacebookTypeConverter.java
+++ b/streams-contrib/streams-provider-facebook/src/main/java/org/apache/streams/facebook/processor/FacebookTypeConverter.java
@@ -181,8 +181,11 @@ public class FacebookTypeConverter implements StreamsProcessor {
                 if( out != null && validate(out, outClass))
                     result = new StreamsDatum(out);
             }
-        } catch (Exception e) {
-            e.printStackTrace();
+        }  catch (Exception e) {
+            LOGGER.error("Exception switching types : {}", e);
+            if(e instanceof InterruptedException) {
+                Thread.currentThread().interrupt();
+            }
         }
 
         if( result != null )


Mime
View raw message