* src/GrampsDBCallback.py: look for GRAMPS_SIGNAL environment

variable equal to 1 to enable signal debugging


svn: r5097
This commit is contained in:
Don Allingham 2005-08-17 18:21:43 +00:00
parent b2e194b8ec
commit 9d1cb02e41
2 changed files with 8 additions and 1 deletions

View File

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

View File

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