DRF-API-Logger
DRF-API-Logger copied to clipboard
Don't write response with method get
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!
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.
Thank you for your feedback.
Is there also a plan to add additional methods like 'PATCH' ?
It already supports all the methods.
Closing due to inactivity.