[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-docs] branch master updated: logging
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-docs] branch master updated: logging |
Date: |
Wed, 25 Sep 2019 18:26:56 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository docs.
The following commit(s) were added to refs/heads/master by this push:
new 24275f1 logging
24275f1 is described below
commit 24275f1c2280c33edf31640b41a4da5f64911681
Author: Florian Dold <address@hidden>
AuthorDate: Wed Sep 25 18:26:44 2019 +0200
logging
---
_exts/tsref.py | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/_exts/tsref.py b/_exts/tsref.py
index 9ff5893..980b9a5 100644
--- a/_exts/tsref.py
+++ b/_exts/tsref.py
@@ -36,10 +36,13 @@ from sphinx.pygments_styles import SphinxStyle
from pygments.formatters import HtmlFormatter
from docutils import nodes
from docutils.nodes import make_id
+from sphinx.util import logging
import re
import sys
+logger = logging.getLogger(__name__)
+
_escape_html_table = {
ord('&'): u'&',
ord('<'): u'<',
@@ -119,10 +122,6 @@ class MyHtmlBuilder(StandaloneHTMLBuilder):
self._current_docname = docname
super(MyHtmlBuilder, self).write_doc(docname, doctree)
- def warn(self, msg):
- print("warning:", msg, file=sys.stderr)
-
-
def get_annotation(tok, key):
if not hasattr(tok, "kv"):
return None
@@ -205,7 +204,7 @@ class LinkFilter(Filter):
tok_setprop(t, "href", href)
tok_setprop(t, "caption", caption)
else:
- self.app.builder.warn("unresolved link target in
comment: " + id)
+ logger.warning("unresolved link target in comment: " +
id)
yield t, m.group(1)
last = m.end()
post = value[last:]
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-docs] branch master updated: logging,
gnunet <=