From: Mike Bayer Date: Sun, 28 Feb 2010 20:15:19 +0000 (+0000) Subject: fix echo test X-Git-Tag: rel_0_6beta2~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9fd094edbb4d7f160fcb36ae96f39514ac1d1f88;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix echo test --- diff --git a/lib/sqlalchemy/log.py b/lib/sqlalchemy/log.py index eac90854cb..3f861d60a9 100644 --- a/lib/sqlalchemy/log.py +++ b/lib/sqlalchemy/log.py @@ -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)