echo_pool=True doesn't seem to have an effect

128 views
Skip to first unread message

bojanb

unread,
Jul 9, 2012, 9:25:02 AM7/9/12
to sqlal...@googlegroups.com
Hi,

I'm trying to debug some issues with sessions in my SQLAlchemy 0.7.4 application. However, setting echo_pool to True doesn't seem to log anything to standard output:

db_engine=create_engine(DB_URI, echo_pool=True)
Session = sessionmaker(bind=db_engine)

Standard logging (echo=True) works fine of course. Any idea on what might be wrong?

Michael Bayer

unread,
Jul 9, 2012, 9:50:53 AM7/9/12
to sqlal...@googlegroups.com
don't feel bad because I had to spend 10 minutes figuring this out again, to see checkin/checkout events you need to use echo_pool="debug".   echo_pool=True just shows major events like connection invalidations.


--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/O33Kntq9gP8J.
To post to this group, send email to sqlal...@googlegroups.com.
To unsubscribe from this group, send email to sqlalchemy+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.

bojanb

unread,
Jul 9, 2012, 1:40:52 PM7/9/12
to sqlal...@googlegroups.com
Thanks. Now I'm able to confirm that connections are being returned to the pool.
Reply all
Reply to author
Forward
0 new messages