Log template errors to stdout when debugging.#1028
Closed
koddsson wants to merge 6 commits intopallets:masterfrom
Closed
Log template errors to stdout when debugging.#1028koddsson wants to merge 6 commits intopallets:masterfrom
koddsson wants to merge 6 commits intopallets:masterfrom
Conversation
Create a LoggingUndefined type that logs to stdout on template erros and pass it to the jinja2 environment if the debug flag is set. Fixes pallets#1006
|
👍 |
|
👍 It can be really useful! |
|
👍 |
Contributor
|
This is very useful but I would appreciate if you would send this as a pull request against Jinja2 instead of Flask. This is something every Jinja2 user would benefit from. |
Author
|
Will do! |
koddsson
added a commit
to koddsson/jinja2
that referenced
this pull request
May 31, 2014
This is almost the same as pallets/flask#1028 although it does not check if we are running in debug mode.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create a
LoggingUndefinedtype that logs to stdout on template errors and passes it to the jinja2 environment if the debug flag is set. Fixes #1006