[Checkins] SVN: zc.zope3recipes/trunk/zc/zope3recipes/debugzope.py - add environment hook to enable debug logging
Alex Chapman
achapman at zope.com
Fri Nov 12 17:27:13 EST 2010
Log message for revision 118388:
- add environment hook to enable debug logging
Changed:
U zc.zope3recipes/trunk/zc/zope3recipes/debugzope.py
-=-
Modified: zc.zope3recipes/trunk/zc/zope3recipes/debugzope.py
===================================================================
--- zc.zope3recipes/trunk/zc/zope3recipes/debugzope.py 2010-11-12 20:37:52 UTC (rev 118387)
+++ zc.zope3recipes/trunk/zc/zope3recipes/debugzope.py 2010-11-12 22:27:13 UTC (rev 118388)
@@ -56,6 +56,8 @@
args = sys.argv[1:]
options = load_options(args, main_module=main_module)
+ if os.environ.get('zc_debug_logging'):
+ options.configroot.eventlog.startup()
try:
globs = zglobals(options.configroot)
except:
More information about the checkins
mailing list