Turn off debug level, enable warn level; provide a default null handler for logging

svn: r23153
This commit is contained in:
Doug Blank 2013-09-17 15:12:36 +00:00
parent adf9d0dc81
commit c4125c9299

View File

@ -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