Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sant527 opened this issue May 10, 2021 · 0 comments
Open

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

sant527 opened this issue May 10, 2021 · 0 comments

Comments

@sant527
Copy link

sant527 commented May 10, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant