axios does not have default integration with the popular debug module.
E.g. if I run the odata-cli example in axios-extension with DEBUG environment variable set DEBUG=axios pnpm start abap, there is no log messages from axios module.
DEBUG=follow-redirects pnpm start abap provides http requests only from the axios' dependent follow-redirects module. It is not sufficient since there is no log for http response.
Value
It will be useful to enable console log to see the details http request and response data during debug and support.
Architecture Elaboration
Does it requires architecture elaboration?
Options are: either using debug npm module directly or use axios-debug-log
What log message format to agree on?
I would propose a one line summary followed by detailed full request/response stringified AxiosRequest and AxiosResponse.
One line summary look like the following (the axios prefix is added by integrating debug / axios-debug-log):
Request:
axios:
axios:
Response:
axios:
axios:
Handling sensitive data in response message
Shall we consider adding a separate environment variable to show detailed AxiosResponse object string (e.g. DEBUG_SENSITIVE=axios)? And for DEBUG=axios we only show the summary.
Description (include screenshots)
axios does not have default integration with the popular debug module. E.g. if I run the odata-cli example in axios-extension with DEBUG environment variable set
DEBUG=axios pnpm start abap
, there is no log messages from axios module.DEBUG=follow-redirects pnpm start abap
provides http requests only from the axios' dependentfollow-redirects
module. It is not sufficient since there is no log for http response.Value
It will be useful to enable console log to see the details http request and response data during debug and support.
Architecture Elaboration
Does it requires architecture elaboration?
Options are: either using
debug
npm module directly or useaxios-debug-log
What log message format to agree on?
I would propose a one line summary followed by detailed full request/response stringified AxiosRequest and AxiosResponse. One line summary look like the following (the axios prefix is added by integrating debug / axios-debug-log):
Request: axios:
axios:
Response: axios:
axios:
Notes
Tasks