Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add option to disable stack traces in server #111
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?