camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: Add information to be logged about underlying exception on Object -> DBObject conversion
Date Fri, 25 Nov 2016 06:56:38 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.18.x ec4c689e3 -> 99f70acc7


Add information to be logged about underlying exception on Object -> DBObject conversion


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/99f70acc
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/99f70acc
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/99f70acc

Branch: refs/heads/camel-2.18.x
Commit: 99f70acc726db3836dfcc8b03fb8f4e3d30aca86
Parents: ec4c689
Author: elomonosov <evgeniy.lomonosov@gmail.com>
Authored: Wed Nov 23 17:33:09 2016 +0100
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Fri Nov 25 07:54:12 2016 +0100

----------------------------------------------------------------------
 .../component/mongodb/converters/MongoDbBasicConverters.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/99f70acc/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/converters/MongoDbBasicConverters.java
----------------------------------------------------------------------
diff --git a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/converters/MongoDbBasicConverters.java
b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/converters/MongoDbBasicConverters.java
index e151579..7fac3c2 100644
--- a/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/converters/MongoDbBasicConverters.java
+++ b/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/converters/MongoDbBasicConverters.java
@@ -131,8 +131,8 @@ public final class MongoDbBasicConverters {
             Map<?, ?> m = OBJECT_MAPPER.convertValue(value, Map.class);
             answer = new BasicDBObject(m);
         } catch (Exception e) {
-            LOG.warn("Conversion has fallen back to generic Object -> DBObject, but unable
to convert type {}. Returning null.", 
-                    value.getClass().getCanonicalName());
+            LOG.warn("Conversion has fallen back to generic Object -> DBObject, but unable
to convert type {}. Returning null. {}",
+                    value.getClass().getCanonicalName(), e.getClass().getCanonicalName()
+ ": " + e.getMessage());
             return null;
         }
         return answer;


Mime
View raw message