diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-10-15 21:06:35 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-10-15 21:06:35 +0000 |
commit | 066cdf13c2951cf52671b25e6dda3f0106be4ed2 (patch) | |
tree | 1e18ad9b0f6770ea6f245d9582312264cead2508 /lib/sqlalchemy/log.py | |
parent | 6535456ea6eabb5b0fa5a76abfb14cc7f663bd75 (diff) | |
download | sqlalchemy-066cdf13c2951cf52671b25e6dda3f0106be4ed2.tar.gz |
- setting echo=False on create_engine() now sets the loglevel
to WARN instead of NOTSET. This so that logging can be
disabled for a particular engine even if logging
for "sqlalchemy.engine" is enabled overall. Note that the
default setting of "echo" is `None`. [ticket:1554]
Diffstat (limited to 'lib/sqlalchemy/log.py')
-rw-r--r-- | lib/sqlalchemy/log.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/log.py b/lib/sqlalchemy/log.py index e7abaed3f..b20e116cf 100644 --- a/lib/sqlalchemy/log.py +++ b/lib/sqlalchemy/log.py @@ -82,7 +82,7 @@ def instance_logger(instance, echoflag=None): default_logging(name) l.setLevel(logging.INFO) elif echoflag is False: - l.setLevel(logging.NOTSET) + l.setLevel(logging.WARN) else: l = logging.getLogger(name) instance._should_log_debug = l.isEnabledFor(logging.DEBUG) |