--- a/src/pyams_utils/registry.py Fri Mar 06 18:50:54 2015 +0100
+++ b/src/pyams_utils/registry.py Fri Mar 06 18:51:15 2015 +0100
@@ -14,6 +14,9 @@
# import standard library
+import logging
+logger = logging.getLogger('PyAMS (utils)')
+
import venusian
# import interfaces
@@ -106,6 +109,10 @@
raise TypeError("Missing 'provides' argument")
config = context.config.with_package(info.module)
+ logger.debug("Registering utility {0} named '{1}' providing {2}".format(
+ str(component) if component else str(factory),
+ settings.get('name', ''),
+ str(provides)))
config.registry.registerUtility(component=component, factory=factory,
provided=provides, name=settings.get('name', ''))