def make_debug_cursor(self, cursor):
        return utils.CursorDebugWrapper(cursor, self)
Creates a cursor that logs all queries in self.queries_log.
dataset/ETHPy150Open django/django/django/db/backends/base/base.py/BaseDatabaseWrapper.make_debug_cursor