From 3c488f4a6d884f0177151e3314dbeff0a79c1028 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 17 Sep 2013 15:15:26 +0000 Subject: [PATCH] provide a default null handler for logging; rename locale debug with leading dot svn: r23154 --- gramps/gen/utils/grampslocale.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gen/utils/grampslocale.py b/gramps/gen/utils/grampslocale.py index 28dec8066..3c463b4fe 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -33,7 +33,8 @@ import os import codecs import locale import logging -LOG = logging.getLogger(__name__) +LOG = logging.getLogger("." + __name__) +LOG.addHandler(logging.NullHandler()) HAVE_ICU = False _hdlr = None # GrampsLocale initialization comes before command-line argument