* src/GrampsDBCallback.py: look for GRAMPS_SIGNAL environment
variable equal to 1 to enable signal debugging svn: r5097
This commit is contained in:
parent
b2e194b8ec
commit
9d1cb02e41
@ -1,4 +1,6 @@
|
||||
2005-08-17 Don Allingham <don@gramps-project.org>
|
||||
* src/GrampsDBCallback.py: look for GRAMPS_SIGNAL environment
|
||||
variable equal to 1 to enable signal debugging
|
||||
* src/ChooseParents.py: disconnect signals on close, do fewer
|
||||
commits
|
||||
|
||||
|
@ -36,6 +36,7 @@
|
||||
or the UI code.
|
||||
"""
|
||||
import sys
|
||||
import os
|
||||
import types
|
||||
import traceback
|
||||
import inspect
|
||||
@ -213,7 +214,11 @@ class GrampsDBCallback(object):
|
||||
|
||||
# If this is True logging will be turned on for all instances
|
||||
# whether or not instance based logging is enabled.
|
||||
__LOG_ALL = False
|
||||
try:
|
||||
__LOG_ALL = int(os.environ.get('GRAMPS_SIGNAL',"0")) == 1
|
||||
print __LOG_ALL
|
||||
except:
|
||||
__LOG_ALL = False
|
||||
|
||||
def __init__(self):
|
||||
self.__enable_logging = False # controls whether lots of debug
|
||||
|
Loading…
x
Reference in New Issue
Block a user