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:59:41 GMT
Repository: camel
Updated Branches:
  refs/heads/master f0821d4aa -> 600abd802


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/600abd80
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/600abd80
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/600abd80

Branch: refs/heads/master
Commit: 600abd802047f35cdca4b95c0f1aaf511f56da82
Parents: f0821d4
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:59:21 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/600abd80/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