users@jersey.java.net

Re: [Jersey] stacktrace prints to stdout

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 22 Oct 2008 10:02:45 +0200

On Oct 21, 2008, at 8:23 PM, Craig Iverson wrote:

> I notice when I return a 500, Jersey prints the error to standard
> out. I'm hoping that this can be changed to the logger. This is in
> the class WebApplicationImpl method onException(...).
>
> if (r.getStatus() >= 500) {
> e.printStackTrace();
> }
>
> It would be nice If I had the ability to override this method or
> some portion of it. Currently we are forced to use another logger,
> so I'm trying to work around the ties to the java logger as much as
> possible. My current work around for this is to have each exception
> mapper class do its own logging.
>

Can you log an issue?

Thanks,
Paul.