Don't write response with method get
Closed this issue · 4 comments
laugrean commented
Hey,
It's not an issue, but an feature request.
Is there a possibility to skip the response in case of get Method and response code 200?
after one day I've got about 200MB of data overhead due to this.
I disabled now the logging for get requests.
Thank you in advance!
vishalanandl177 commented
Hi @laugrean
You can log only limited methods and status code.
DRF_API_LOGGER_METHODS = ['GET', 'POST', 'DELETE', 'PUT'] #
DRF_API_LOGGER_STATUS_CODES = ['200', '400', '404', '500'] #
Please let know if you face the issue again.
laugrean commented
Thank you for your feedback.
Is there also a plan to add additional methods like 'PATCH' ?
vishalanandl177 commented
It already supports all the methods.
vishalanandl177 commented
Closing due to inactivity.