Pylons / pyramid

Pyramid - A Python web framework
https://trypyramid.com/
Other
3.97k stars 887 forks source link

Logger for SQLAlchemy in `Quick Tutorial Chapter 19: Databases Using SQLAlchemy` seems to be wrong #3706

Closed ckaipf closed 1 year ago

ckaipf commented 2 years ago

When I worked through the Quick Tutorial Chapter 19: Databases Using SQLAlchemy, I did not get the documented log information in the console when running $VENV/bin/initialize_tutorial_db development.ini.

Changing the logger from sqlalchemy.engine.base.Engine to sqlalchemy.engine.Engine in development.ini solved it for me.

stevepiercy commented 2 years ago

Nice catch! I can replicate the issue.

Would you like to submit a pull request with the changes? There are 3 places in development.ini where sqlalchemy.engine.base.Engine occurs, plus the documentation itself with an updated logging output.

ckaipf commented 2 years ago

Sure, it is my first, I hope I did everything right. Thanks for the great tutorial!