3

In my view, I am logging to a file using logger.info(message)

The message is a string that must contain the HTTP status and how long it took to handle the request.

i can't find request-response time in HttpResponse().

What suprises me is that django.server logs the time. How did they do that?

enter image description here

adigunsherif
  • 73
  • 1
  • 7

1 Answers1

2

The time taken isn't tracked. The number at the end of the line is the size of the response in bytes.

What's the meaning of the default output of manage.py runserver?

wennho
  • 123
  • 1
  • 7