]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix echo test
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 28 Feb 2010 20:15:19 +0000 (20:15 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 28 Feb 2010 20:15:19 +0000 (20:15 +0000)
lib/sqlalchemy/log.py

index eac90854cb67eec4a916032ae831bcd52f3e08e3..3f861d60a9fe5bf8040b685bbe66a48a74ac8bbd 100644 (file)
@@ -106,8 +106,8 @@ class echo_property(object):
         if instance is None:
             return self
         else:
-            return instance._should_log_debug and 'debug' or \
-                            (instance._should_log_info and True or False)
+            return instance._should_log_debug() and 'debug' or \
+                            (instance._should_log_info() and True or False)
 
     def __set__(self, instance, value):
         instance_logger(instance, echoflag=value)