the logging level is checked on each new connection, so yes you can set echo at any time.
On Sep 22, 2010, at 4:46 PM, Michael Hipp wrote: > On 8/26/2010 8:55 PM, Mike Conley wrote: >> On Thu, Aug 26, 2010 at 4:21 PM, Michael Hipp <mich...@hipp.com >> <mailto:mich...@hipp.com>> wrote: >> >> Is there a way to set 'echo' at any time? Everything I can find sets it >> when the engine is created and doesn't seem to change it afterward. >> >> You can assign the engine.echo property to True or False any time after >> creating the engine. > > Is there something that would trigger this to be recognized? > > In trying to use this to see the sql from a key piece of code it seems if I > have to do the engine.echo=True well in advance of when I want it to start; > and similarly I need to wait well after I want it to stop before I set it to > False. Otherwise I miss stuff. > > Thanks, > Michael > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To post to this group, send email to sqlalch...@googlegroups.com. > To unsubscribe from this group, send email to > sqlalchemy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.