From 9fd094edbb4d7f160fcb36ae96f39514ac1d1f88 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 28 Feb 2010 20:15:19 +0000 Subject: [PATCH] fix echo test --- lib/sqlalchemy/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.3