Skip to content

Log template errors to stdout when debugging.#1028

Closed
koddsson wants to merge 6 commits intopallets:masterfrom
koddsson:master
Closed

Log template errors to stdout when debugging.#1028
koddsson wants to merge 6 commits intopallets:masterfrom
koddsson:master

Conversation

@koddsson
Copy link
Copy Markdown

Create a LoggingUndefined type that logs to stdout on template errors and passes it to the jinja2 environment if the debug flag is set. Fixes #1006

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
@gregorynicholas
Copy link
Copy Markdown

👍

@iurisilvio
Copy link
Copy Markdown

👍

It can be really useful!

@klinkin
Copy link
Copy Markdown

klinkin commented Apr 28, 2014

👍

@mitsuhiko
Copy link
Copy Markdown
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.

@mitsuhiko mitsuhiko closed this May 7, 2014
@koddsson
Copy link
Copy Markdown
Author

koddsson commented May 8, 2014

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.
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set app.jinja_env.undefined to something better when debug = True

5 participants