You should put this to your dev.cfg:
[[[database]]] # Set to INFO to make SQLAlchemy display SQL commands level='INFO' qualname='sqlalchemy.engine' handlers=['debug_out'] propagate=0 Yo'av. On Apr 1, 11:23 am, "Bobby Impollonia" <[EMAIL PROTECTED]> wrote: > Hi. I am using sqlalchemy in a turbogears project. How do set > sqlalchemy to echo my queries when I am using tg-admin shell? I tried > sqlalchemy.echo = True in dev.cfg but that didn't work. I thought I > had managed to turn it on by setting it on the engine, but nothing is > actually echoing: > > In [26]: session().connection(User).engine.echo > Out[26]: True > > In [27]: User.query.count() > Out[27]: 64L --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

