You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2016/11/25 06:56:38 UTC
camel git commit: Add information to be logged about underlying
exception on Object -> DBObject conversion
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 <ev...@gmail.com>
Authored: Wed Nov 23 17:33:09 2016 +0100
Committer: Andrea Cosentino <an...@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;