'Log information for 200 OK responses as part of the outbound pipeline'

def process_response(self, request, response):

    if (response.status_code == 200):
        total_time = 0
        for query in connection.queries:
            query_time = query.get('time')
            if (query_time is None):
                query_time = (query.get('duration', 0) / 1000)
            total_time += float(query_time)
        log.info(u'%s    queries    run,    total    %s    seconds', len(connection.queries), total_time)
    return response
