[prev in list] [next in list] [prev in thread] [next in thread]
List: wink-dev
Subject: [jira] Created: (WINK-240) Change logging to be less noisy
From: "Bryant Luk (JIRA)" <jira () apache ! org>
Date: 2009-12-11 22:02:18
Message-ID: 1806332562.1260568938119.JavaMail.jira () brutus
[Download RAW message or body]
Change logging to be less noisy
-------------------------------
Key: WINK-240
URL: https://issues.apache.org/jira/browse/WINK-240
Project: Wink
Issue Type: Improvement
Affects Versions: 1.0
Reporter: Bryant Luk
Fix For: 1.1
Some users do not like the fact that we log every exception thrown (due to their use \
of exceptions in their method contracts for handling business logic). Perhaps \
reducing the logging in RequestProcessor may be better:
In RequestProcessor#logException(Throwable) replace statements like:
{code}
logger.error(String.format(messageFormat, exceptionName), t);
{code}
with:
{code}
// don't log the whole call stack unless debugging
if (logger.isDebugEnabled()) {
logger.debug(String.format(messageFormat, exceptionName), t);
} else {
logger.info(String.format(messageFormat, exceptionName));
}
{code}
In a production environment, messages won't be logged but in development \
environments, a general message will be logged at info with the full call stack at \
debug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic