Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Navarro Bosch committed Mar 7, 2017
1 parent 8767602 commit 786b74e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plone.server/plone/server/traversal.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ async def traverse(request, parent, path):
# Create a new conection
context._db.pool._reduce_size(strictly_less=True)
print('BEFORE AVAILABLE: %d' % len(context._db.pool.available))
print('ALL CONNECTIONS: %d' % len(context._db.pool.all))
request.conn = context.open()
# Check the transaction
request._db_write_enabled = False
Expand Down Expand Up @@ -248,6 +249,7 @@ async def handler(self, request):
if SHARED_CONNECTION is False and hasattr(request, 'conn'):
request.conn.close()
print('AFTER AVAILABLE: %d' % len(request.conn._db.pool.available))
print('AFTER ALL CONNECTIONS: %d' % len(request.conn._db.pool.all))


# Make sure its a Response object to send to renderer
Expand Down

0 comments on commit 786b74e

Please sign in to comment.