* src/MarkupText.py: cleanup
* src/DisplayTabs/_NoteTab.py (build_interface): debug log * src/const.py.in: add new command line arg '-d,--debug' * src/gramps.py (setup_logging): change root logger default level to WARNING * src/ArgHandler.py (parse_arg): handle command line arg: debug 2007-02-12 Zsolt Foldvari <zfoldvar@users.sourceforge.net> svn: r8093
This commit is contained in:
@ -42,6 +42,7 @@ import os
|
||||
import sys
|
||||
import getopt
|
||||
from gettext import gettext as _
|
||||
import logging
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -254,6 +255,9 @@ class ArgHandler:
|
||||
and options[opt_ix+1][0] in ( '-p', '--options' ):
|
||||
options_str = options[opt_ix+1][1]
|
||||
self.actions.append((action,options_str))
|
||||
elif o in ('-d', '--debug'):
|
||||
l = logging.getLogger()
|
||||
l.setLevel(logging.DEBUG)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
# Determine the need for GUI
|
||||
|
Reference in New Issue
Block a user