RE: [sqlalchemy] engine.echo not working as expected

2011-07-27 Thread King Simon-NFHD78
-Original Message- From: sqlalchemy@googlegroups.com [mailto:sqlalchemy@googlegroups.com] On Behalf Of Mike Conley Sent: 27 July 2011 17:43 To: sqlalchemy@googlegroups.com Subject: [sqlalchemy] engine.echo not working as expected Under 0.5 I was able to turn echo on and off as

Re: [sqlalchemy] engine.echo not working as expected

2011-07-27 Thread Mike Conley
I saw that, but unless setting echo actually changes the Python logger configuration I don't see how it applies here. -- Mike Conley On Wed, Jul 27, 2011 at 12:31 PM, King Simon-NFHD78 simon.k...@motorolasolutions.com wrote: -Original Message- From: sqlalchemy@googlegroups.com

Re: [sqlalchemy] engine.echo not working as expected

2011-07-27 Thread Michael Bayer
No Python logging calls are emitted, which means, log.info() and log.debug() *are not called at all*, if logging.isEnabledFor() returns False, which itself is only checked upon Connection construction. These calls are all unreasonably expensive so they aren't used if not necessary. That's