From c4125c9299753603b56432caa24f5bb83a8a9f4f Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 17 Sep 2013 15:12:36 +0000 Subject: [PATCH] Turn off debug level, enable warn level; provide a default null handler for logging svn: r23153 --- gramps/gen/utils/grampslocale.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps/gen/utils/grampslocale.py b/gramps/gen/utils/grampslocale.py index ef726d414..cd19bad5b 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -33,13 +33,15 @@ 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 # passing, so one must set the log level directly. The default is # logging.WARN. Uncomment the following to change it to logging.DEBUG: -LOG.setLevel(logging.DEBUG) +#LOG.setLevel(logging.DEBUG) try: from icu import Locale, Collator HAVE_ICU = True