You could have a look at drf-tracking. You can find it here: 
https://github.com/aschn/drf-tracking <https://github.com/aschn/drf-tracking>.

Thomas



> On 21 Aug 2019, at 13:01, kumar deepak <deepak....@gmail.com> wrote:
> 
> The default behaviour of DRF is to throw exception for 5XX, but return valid 
> response with error details for 4XX. 
> 
> I want to log request and response of any API call which fails with 4XX.
> 
> 
> 
> Currently the log only shows Bad Request : /path/api/
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-rest-framework+unsubscr...@googlegroups.com 
> <mailto:django-rest-framework+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-rest-framework/a22b8cae-4179-4c6c-9085-2cbb40ce5efe%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-rest-framework/a22b8cae-4179-4c6c-9085-2cbb40ce5efe%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-rest-framework/1A8E9232-CA16-420E-A242-8D7D2AEFE7E0%40me.com.

Reply via email to