[gtk-doc] db2html: use our own utillity functions
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] db2html: use our own utillity functions
- Date: Mon, 19 Feb 2018 18:51:37 +0000 (UTC)
commit a2c3aa72aeff66d6e16bf9ed3c7a81b47370f6cc
Author: Stefan Sauer <ensonic users sf net>
Date: Mon Feb 19 19:48:43 2018 +0100
db2html: use our own utillity functions
tools/db2html.py | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/tools/db2html.py b/tools/db2html.py
index c98be5b..6a2b931 100644
--- a/tools/db2html.py
+++ b/tools/db2html.py
@@ -71,6 +71,7 @@ from lxml import etree
# TODO(ensonic): requires gtk-doc to be installed, rewrite later
sys.path.append('/usr/share/gtk-doc/python')
from gtkdoc.fixxref import NoLinks
+from gtkdoc import common
# http://www.sagehill.net/docbookxsl/Chunking.html
@@ -823,12 +824,6 @@ if __name__ == '__main__':
if len(options.sources) != 1:
sys.exit('Expect one source file argument.')
- log_level = os.environ.get('GTKDOC_TRACE')
- if log_level == '':
- log_level = 'INFO'
- if log_level:
- logging.basicConfig(stream=sys.stdout,
- level=logging.getLevelName(log_level.upper()),
-
format='%(asctime)s:%(filename)s:%(funcName)s:%(lineno)d:%(levelname)s:%(message)s')
+ common.setup_logging()
sys.exit(main(options.sources[0]))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]