Too much info at Internal Server Error

How can we limit the information displayed at Internal Server Error? is there a way we can display some standard error message which is of generic in nature?

could you please re-phrase your question?

What is the goal you have?

Do you want to limit the the Graylog server logging that is written to the server.log file? If yes, you need to modify the log4j configuration file in of your Graylog installation.

Where to find, depends on your installation:

Some details about this log configuration.

Thanks for the response.
I am trying to reduce the information listed at the stack trace. Below is the example:

Internal Server Error

Reason Malformed escape pair at index 66:


java.lang.IllegalArgumentException: Malformed escape pair at index 66: at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.getRequestUri( at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service( at org.glassfish.grizzly.http.server.HttpHandler$ at com.codahale.metrics.InstrumentedExecutorService$ at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at Caused by: Malformed escape pair at index 66: at$ at$Parser.scanEscape( at$Parser.scan( at$Parser.checkChars( at$Parser.parseHierarchical( at$Parser.parse( at<init>( at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.getRequestUri( … 6 more

That is not easy, but possible. See this as reference

It would be helpful if you share your findings.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.