[ 
https://issues.apache.org/jira/browse/CAMEL-13181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16766169#comment-16766169
 ] 

Jesse Sightler commented on CAMEL-13181:
----------------------------------------

That is a fair point. Removing this part of the log line would be better than 
the current situation, IMO.

> camel-salesforce - rest exception parsing produces useless messages
> -------------------------------------------------------------------
>
>                 Key: CAMEL-13181
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13181
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-salesforce
>            Reporter: Jesse Sightler
>            Priority: Minor
>
> In the case of serialization failures, createRestException swallows the 
> exception and logs the inputstream object itself:
>  
> [https://github.com/apache/camel/blob/master/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/client/DefaultRestClient.java#L119]
>  
> This does not tend to produce an error message, as the response is 
> essentially always something like "ByteArrayInputStream@\{hashcode}". Perhaps 
> it could try to return the raw contents if it is short and json?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to