summaryrefslogtreecommitdiff
path: root/sphinx/ext/todo.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/ext/todo.py')
-rw-r--r--sphinx/ext/todo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/ext/todo.py b/sphinx/ext/todo.py
index e8d8201df..f575e7462 100644
--- a/sphinx/ext/todo.py
+++ b/sphinx/ext/todo.py
@@ -100,7 +100,8 @@ def process_todos(app, doctree):
})
if env.config.todo_emit_warnings:
- logger.warn_node("TODO entry found: %s" % node[1].astext(), node)
+ logger.warning("TODO entry found: %s", node[1].astext(),
+ location=node)
class TodoList(Directive):