Skip to content

both (request and response) logs are called after self.get_response #135

Description

@sant527

In the below code both (request and response) logs are called after self.get_response

I want to see the request logging first and then the some logging in my views and then the reponse logging.

This is a bit of confusion.

    def __call__(self, request):
        self.cached_request_body = request.body
        response = self.get_response(request)
        self.process_request(request,response)
        self.process_response(request, response)
        return response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions