Open Fylipp opened 4 years ago
Great idea. But I think It can be controlled by axios maxContentLength property. This part looks good to delegate to axios.
The problem is that an application might need the entire response. For my use case I expect to receive multiple kilobytes of text data and it all has to be processed, meaning I need Axios to properly treat the response (ruling out maxContentLength
). However, this fills up the logs with lots of clutter from the logging. Being able to only the log the first 100 characters or so would allow logging to be used with large responses.
Oh, I see. You means that It need to limit for only log data. I will consider. Thank you for feedback.
👍 this would be very helpful
@hg-pyun Could you please take a look on #129 and merge it?
When logging the bodies of large requests or responses it would make sense to allow them to be limited to a certain size. Otherwise large bodies clutter the console without adding value.