tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <>
Subject [jira] Reopened: (OPENEJB-918) transaction logging is too intrusive by default
Date Thu, 13 Nov 2008 23:14:44 GMT


Jarek Gawor reopened OPENEJB-918:

I'm pretty sure these changes cause the following errors:

java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: can't parse argument
        at java.util.concurrent.FutureTask$Sync.innerGet(
        at java.util.concurrent.FutureTask.get(
        at org.apache.openejb.util.Memoizer.compute(
        at org.apache.openejb.util.Logger.formatMessage(
        at org.apache.openejb.util.Logger.error(

The logging was changed to pass parameters instead of doing string concatenation. E.g. log.error("my
exception: " + exception) was changed to log.error("my exception {}", exception). The "{}"
substitution works when using slf4j but not with OpenEJB logger. OpenEJB logger uses MessageFormater
to perform parameter substitution and that requires "{<n>}" format. So I think either
the logging messages need to be fixed or the OpenEJB logger needs to be updated to handle
the "{}" substitution (without the parameter number). 

> transaction logging is too intrusive by default
> -----------------------------------------------
>                 Key: OPENEJB-918
>                 URL:
>             Project: OpenEJB
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 3.1
>            Reporter: David Jencks
>            Assignee: David Jencks
>             Fix For: 3.1
> The txLogger logs stuff at at least info.  While its good having a separate logger for
production data it is too intrusive to have to turn down this to debug to not clog up logs.
 The logging can also use the format methods to simplify the code a bit.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message