04/04/2008

Pylons Paster Shell Logging

For anyone else looking to see the SQL SQLAlchemy generates while using the paster shell command you need to have the following in your development.ini:

sqlalchemy.default.echo = true

and then in the shell type the following:

>>> g.sa_engine.logger.disabled = 0

Browsing the pylons source quickly I cant see why this is needed, the logging looks to be setup properly...

I found the solution here for anyone interested http://groups.google.hu/group/pylons-discuss/msg/057e70d62dead733

No comments: