Turn off debug level, enable warn level; provide a default null handler for logging
svn: r23153
This commit is contained in:
parent
adf9d0dc81
commit
c4125c9299
@ -33,13 +33,15 @@ import os
|
|||||||
import codecs
|
import codecs
|
||||||
import locale
|
import locale
|
||||||
import logging
|
import logging
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
LOG = logging.getLogger("." + __name__)
|
||||||
|
LOG.addHandler(logging.NullHandler())
|
||||||
HAVE_ICU = False
|
HAVE_ICU = False
|
||||||
_hdlr = None
|
_hdlr = None
|
||||||
# GrampsLocale initialization comes before command-line argument
|
# GrampsLocale initialization comes before command-line argument
|
||||||
# passing, so one must set the log level directly. The default is
|
# passing, so one must set the log level directly. The default is
|
||||||
# logging.WARN. Uncomment the following to change it to logging.DEBUG:
|
# logging.WARN. Uncomment the following to change it to logging.DEBUG:
|
||||||
LOG.setLevel(logging.DEBUG)
|
#LOG.setLevel(logging.DEBUG)
|
||||||
try:
|
try:
|
||||||
from icu import Locale, Collator
|
from icu import Locale, Collator
|
||||||
HAVE_ICU = True
|
HAVE_ICU = True
|
||||||
|
Loading…
Reference in New Issue
Block a user