You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2020/08/20 07:06:00 UTC

[jira] [Updated] (CAMEL-15430) Potentially incorrect log placeholders

     [ https://issues.apache.org/jira/browse/CAMEL-15430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Otavio Rodolfo Piske updated CAMEL-15430:
-----------------------------------------
    Description: 
While investigating an issue I found some circumstances where invalid log placeholders are present. They would cause the log messages to be printed like this:
{code:java}
Error message: {}{code}
It's a minor issue, but could be confusing for debugging.

 

Here's one example: [https://github.com/apache/camel/blob/4ea9e6c357371682b855d2d79655b41120331b7a/core/camel-xml-jaxp/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java#L1005] 

 

The last item, the exception object, will not be displayed. Instead, the stackTrace will be printed and the {} will be shown on the message.

 

This also happens on 3.4.3.

  was:
While investigating an issue I found some circumstances where invalid log placeholders are present. They would cause the log messages to be printed like this:

``` Error message: {}```

It's a minor issue, but could be confusing for debugging.

 

Here's one example: https://github.com/apache/camel/blob/4ea9e6c357371682b855d2d79655b41120331b7a/core/camel-xml-jaxp/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java#L1005 

 

The last item, the exception object, will not be displayed. Instead, the stackTrace will be printed and the {} will be shown on the message.

 

This also happens on 3.4.3.


> Potentially incorrect log placeholders
> --------------------------------------
>
>                 Key: CAMEL-15430
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15430
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 3.5.0
>            Reporter: Otavio Rodolfo Piske
>            Priority: Minor
>
> While investigating an issue I found some circumstances where invalid log placeholders are present. They would cause the log messages to be printed like this:
> {code:java}
> Error message: {}{code}
> It's a minor issue, but could be confusing for debugging.
>  
> Here's one example: [https://github.com/apache/camel/blob/4ea9e6c357371682b855d2d79655b41120331b7a/core/camel-xml-jaxp/src/main/java/org/apache/camel/converter/jaxp/XmlConverter.java#L1005] 
>  
> The last item, the exception object, will not be displayed. Instead, the stackTrace will be printed and the {} will be shown on the message.
>  
> This also happens on 3.4.3.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)