Marcel Reutegger created OAK-7226:
-------------------------------------

             Summary: Warn messages ignoring exception parameter
                 Key: OAK-7226
                 URL: https://issues.apache.org/jira/browse/OAK-7226
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: blob-plugins
            Reporter: Marcel Reutegger
             Fix For: 1.10


There are a few usages of Logger.warn() with a pattern similar to this example:

{noformat}
log.warn("Error occurred while fetching DataRecord for identifier {}", input, 
exeption);
{noformat}

The intention probably is that the third parameter is treated as an exception 
and e.g. logged with the stack trace. However, this method signature interprets 
the exception as a second argument for the message format. This means the 
exception is effectively ignored.



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

Reply via email to