]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix to previous logging fix...
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 20 May 2007 19:22:07 +0000 (19:22 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 20 May 2007 19:22:07 +0000 (19:22 +0000)
lib/sqlalchemy/orm/strategies.py

index a1f88355def082b8205799abdb847d48f0201086..6bdaa1d16137d0d0cd081fa2ba8938a08d55887d 100644 (file)
@@ -162,6 +162,8 @@ class LazyLoader(AbstractRelationLoader):
     def init(self):
         super(LazyLoader, self).init()
         (self.lazywhere, self.lazybinds, self.lazyreverse) = self._create_lazy_clause(self)
+        
+        self.logger.info(str(self.parent_property) + " lazy loading clause " + str(self.lazywhere))
 
         # determine if our "lazywhere" clause is the same as the mapper's
         # get() clause.  then we can just use mapper.get()
@@ -304,8 +306,7 @@ class LazyLoader(AbstractRelationLoader):
             if reverse_direction:
                 li.traverse(secondaryjoin)
             lazywhere = sql.and_(lazywhere, secondaryjoin)
-        LazyLoader.logger.info(str(prop.parent_property) + " lazy loading clause " + str(lazywhere))
+
         return (lazywhere, binds, reverse)
     _create_lazy_clause = classmethod(_create_lazy_clause)