New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disable stack traces in server #111

jamesagnew opened this Issue Feb 19, 2015 · 1 comment


None yet
1 participant

jamesagnew commented Feb 19, 2015

From suggestion by Andy Huang on the mailing list.

Can we add a configuration option to turn off stack traces in RestfulServer? Currently, any InternalErrorException created without an OperationalOutcome will automatically have it's stack trace included in the OperationalOutcome generated by RestfulServer. All exceptions that are not instances of BaseServerResponseException will also have their stack traces in the auto-generated OperationalOutcome. It would be nice for production servers to have the ability to turn off sending stack traces to the client.

Another thing that I noticed is that RestfulServer seems to be ignoring the message field for InternalErrorExceptions. This is very misleading since all other BaseServerResponseExceptions use the message field in their generated OperationalOutcomes. Perhaps this should also be addressed?


This comment has been minimized.


jamesagnew commented Mar 11, 2015

About to check in a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment