Don't show stack variables; redo this and dump to a file
This commit is contained in:
parent
732743cec5
commit
41f8df9a94
@ -109,9 +109,11 @@ def exc_hook(type, value, tb):
|
|||||||
if type == IOError:
|
if type == IOError:
|
||||||
# strange Windows logging error on close
|
# strange Windows logging error on close
|
||||||
return
|
return
|
||||||
from gramps.gen.utils.debug import format_exception
|
#Use this to show variables in each frame:
|
||||||
|
#from gramps.gen.utils.debug import format_exception
|
||||||
|
import traceback
|
||||||
LOG.error("Unhandled exception\n" +
|
LOG.error("Unhandled exception\n" +
|
||||||
"".join(format_exception(type, value, tb)))
|
"".join(traceback.format_exception(type, value, tb)))
|
||||||
|
|
||||||
sys.excepthook = exc_hook
|
sys.excepthook = exc_hook
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user