[Zope3-checkins] CVS: Zope3/src/zope/configuration - xmlconfig.py:1.8

Jeremy Hylton jeremy@zope.com
Sun, 22 Jun 2003 15:00:58 -0400


Update of /cvs-repository/Zope3/src/zope/configuration
In directory cvs.zope.org:/tmp/cvs-serv7201/src/zope/configuration

Modified Files:
	xmlconfig.py 
Log Message:
Add minimal debug logging to configuration.


=== Zope3/src/zope/configuration/xmlconfig.py 1.7 => 1.8 ===
--- Zope3/src/zope/configuration/xmlconfig.py:1.7	Thu Jun 12 05:28:11 2003
+++ Zope3/src/zope/configuration/xmlconfig.py	Sun Jun 22 15:00:58 2003
@@ -17,6 +17,7 @@
 
 import os
 import sys
+import logging
 from keyword import iskeyword
 from types import StringType
 from os.path import abspath
@@ -35,6 +36,8 @@
 _NO_MODULE_GIVEN = object()
 
 
+logger = logging.getLogger("config")
+
 class ZopeXMLConfigurationError(ConfigurationError):
     """Zope XML Configuration error"""
 
@@ -355,6 +358,7 @@
         return ()
 
     def _include(self, file_name, package):
+        logger.debug("include %s" % file_name)
         f = open(file_name)
         self._stack.append(file_name)
         xmlconfig(f, self._actions, Context(self._stack, package),