New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to log entire response (at least statusCode & body) #650
Comments
There's no way to
|
Thanks for the response @hassy Unfortunately using the additional DEBUG settings only added headers. For example,
|
Yeah, I discovered earlier this week that |
If you add
then in the my-functions.js file add a
make sure in the file you include
|
Thanks for the example @JGro144! I had to make a small modification to get it to work: ( replace
|
Can you share my-functions.js? |
I used the afterResponse method suggested above. response.body has the json, you may need to JSON.parse() it in your next method. and don't quote me but I think you can add to context.vars.yourResponse via YAML and afterResposne method. |
I'm trying to correlate the response statusCode with the response body.
How can I get a log of the body & the statusCode? I attempted this:
Obviously
statusCode
logs asundefined
. ThefooBody
works.The text was updated successfully, but these errors were encountered: