diff --git a/gramps/gen/utils/grampslocale.py b/gramps/gen/utils/grampslocale.py index 5428fcca0..ca725c563 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -38,7 +38,7 @@ import collections import logging LOG = logging.getLogger("." + __name__) -LOG.addHandler(logging.NullHandler()) +LOG.propagate = True HAVE_ICU = False _hdlr = None # GrampsLocale initialization comes before command-line argument @@ -558,7 +558,7 @@ class GrampsLocale(object): if _hdlr: LOG.removeHandler(_hdlr) - + _hdlr = None self._dd = self._dp = None #Guards against running twice on the first instance. self.initialized = True diff --git a/gramps/gen/utils/maclocale.py b/gramps/gen/utils/maclocale.py index a9ad9c950..3fc5829d0 100644 --- a/gramps/gen/utils/maclocale.py +++ b/gramps/gen/utils/maclocale.py @@ -79,7 +79,9 @@ locale, leaving $LANGUAGE unset (which is the same as setting it to import sys, os, subprocess, locale import logging -LOG = logging.getLogger("grampslocale") +LOG = logging.getLogger(".gramps.gen.utils.grampslocale.mac") +LOG.propagate = True +#LOG.setLevel(logging.DEBUG) def mac_setup_localization(glocale): """