Request logging with sqlalchemy 0.6

With turbogears 2.1 and sqlalchemy 0.7, console requests were logged on stdout. However, I needed to drop to 0.6, and they no longer appeared. The logging documentation seems identical, and I could not find anything in the change log. How to enter sqlalchemy 0.6?

EDIT is DBSession.bind.echo set to False. If I installed it in True, it will work. Any idea how to install it correctly (I'v changed model/__init__.pysetting engine.echo = True).

+3
source share
2 answers

The configuration file must contain the specified parameters. Look for those insidedevelopment.ini

sqlalchemy.echo = true
sqlalchemy.echo_pool = true
+3
source

TurboGears, , engine echo True, .

engine = sqlalchemy.create_engine('sqlite:///:memory:', echo=True)

echo False, stdout. , TG SA -.

+5

All Articles