title: How to log pymongo queries?
body: <p>In Django default database drivers there is a list of raw queries against the database in <a href="https://stackoverflow.com/questions/2133627/using-django-db-connection-queries"><code>django.db.connection.queries</code></a>.</p>
  
  <p>Is there anything similar in the MongoDB driver pymongo that can be turned on for a single Django http round-trip?</p>
  
  <p>More specifically, I had a <a href="https://gist.github.com/1229685" rel="nofollow noreferrer">useful middleware</a> that showed a list of SQL queries for Django supported RDBs, and I would like to have the same thing for our API stack that uses pymongo.</p>