diff options
Diffstat (limited to 'lib/sqlalchemy/log.py')
-rw-r--r-- | lib/sqlalchemy/log.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/log.py b/lib/sqlalchemy/log.py index eac90854c..3f861d60a 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) |