* 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:
Zsolt Foldvari
2007-02-12 22:33:03 +00:00
parent 4f390df00d
commit 4cd6d41f79
6 changed files with 24 additions and 16 deletions

View File

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