[Checkins] SVN: zc.zope3recipes/trunk/zc/zope3recipes/recipes.py
Added missing logger to App install method
Darryl Cousins
darryl at darrylcousins.net.nz
Sun Feb 10 19:48:27 EST 2008
Log message for revision 83739:
Added missing logger to App install method
Changed:
U zc.zope3recipes/trunk/zc/zope3recipes/recipes.py
-=-
Modified: zc.zope3recipes/trunk/zc/zope3recipes/recipes.py
===================================================================
--- zc.zope3recipes/trunk/zc/zope3recipes/recipes.py 2008-02-10 21:15:18 UTC (rev 83738)
+++ zc.zope3recipes/trunk/zc/zope3recipes/recipes.py 2008-02-11 00:48:26 UTC (rev 83739)
@@ -15,6 +15,7 @@
"""
import os, sys, shutil
+import logging
import zc.buildout
import zc.recipe.egg
import pkg_resources
@@ -38,6 +39,7 @@
def __init__(self, buildout, name, options):
self.options = options
+ self.name = name
options['location'] = os.path.join(
buildout['buildout']['parts-directory'],
@@ -125,6 +127,7 @@
def install(self):
options = self.options
z3path = options.get('zope3-location')
+ logger = logging.getLogger(self.name)
if z3path is not None:
if not os.path.exists(z3path):
logger.error("The directory, %r, doesn't exist." % z3path)
More information about the Checkins
mailing list