mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Renamed deprecated logger.warn to warning
This commit is contained in:
parent
310049a5ae
commit
81fed5bc33
@ -211,7 +211,7 @@ class IncludeNode(Node):
|
||||
if context.template.engine.debug:
|
||||
raise
|
||||
template_name = getattr(context, 'template_name', None) or 'unknown'
|
||||
logger.warn(
|
||||
logger.warning(
|
||||
"Exception raised while rendering {%% include %%} for "
|
||||
"template '%s'. Empty string rendered instead.",
|
||||
template_name,
|
||||
|
Loading…
Reference in New Issue
Block a user