-
Notifications
You must be signed in to change notification settings - Fork 14
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
Implement verbose error page mode #368
Implement verbose error page mode #368
Conversation
Display several meta information of the current request, session and environment on the error page for faster debugging. Can be enabled by setting `conf[viur.debug.verboseErrorHandler"]` to `True`. I changed the error.css a bit to support larger content and the new content.
…w available on HTTPErrors as well
debugInformation = "" | ||
# We're running on development server or verbose mode is on | ||
if self.isDevServer or conf["viur.debug.verboseErrorHandler"]: | ||
if not isinstance(e, errors.HTTPException): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@viur-framework/developers What do your think about this. Shall we print a traceback on HTTPException
s or not? Might be helpful to find the right case, if there are multiple reasons.
I'm undecided about this one. I generally like the idea of a better error page, however i see a few problems with this approach.
|
Hello @sveneberth, I'm in the opinion this feature is useful and should be integrated somehow. Can you please update your pull request to current main, or provide a similar solution in viur-base? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see previous comment.
As there is no more interaction here, the ticket will be closed. |
Display several meta information of the current request, session and environment on the error page for faster debugging.
Can be enabled by setting
conf[viur.debug.verboseErrorHandler"]
toTrue
.I changed the error.css a bit to support larger content and the new content. Because afaik a new design is already in the pipeline, this is only very rudimentary.