Repository: camel Updated Branches: refs/heads/camel-2.16.x b51cf41a2 -> 598f2d56d
CAMEL-9625: rest-dsl - Marshal should only happen if content-type is json or xml Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/598f2d56 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/598f2d56 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/598f2d56 Branch: refs/heads/camel-2.16.x Commit: 598f2d56d34ee627afadfc69c2dcc0c92c6dd8f8 Parents: b51cf41 Author: Claus Ibsen <davscl...@apache.org> Authored: Sat Feb 20 08:31:30 2016 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sat Feb 20 08:31:30 2016 +0100 ---------------------------------------------------------------------- .../apache/camel/component/restlet/DefaultRestletBinding.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/598f2d56/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java ---------------------------------------------------------------------- diff --git a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java b/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java index ac091f5..a106104 100644 --- a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java +++ b/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/DefaultRestletBinding.java @@ -215,7 +215,9 @@ public class DefaultRestletBinding implements RestletBinding, HeaderFilterStrate if (request.getMethod() == Method.PUT || request.getMethod() == Method.POST) { Representation body = createRepresentationFromBody(exchange, mediaType); request.setEntity(body); - LOG.debug("Populate Restlet {} request from exchange body: {} using media type {}", method, body, mediaType); + if (LOG.isDebugEnabled()) { + LOG.debug("Populate Restlet {} request from exchange body: {} using media type {}", new Object[]{method, body, mediaType}); + } } else { // no body LOG.debug("Populate Restlet {} request from exchange using media type {}", method, mediaType);