Skip to content
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

add logResponsePayload option to log response returned value #188

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

juampiOrlandoTN
Copy link

@juampiOrlandoTN juampiOrlandoTN commented Jun 4, 2024

This PR adds a new option logResponsePayload that, when true, adds the response returned value (Hapi request.response.source - Docs ) as responsePayload to the response event log.

Please, note that this information is not present at the NodeJS res object that nowadays is being logged.
This is useful when we want to track the returned response of our server

@juampiOrlandoTN juampiOrlandoTN changed the title add logReturnedValue option to log response returned value add logResponsePayload option to log response returned value Jun 5, 2024
@Matthew-Kanderka
Copy link

I need this fix for my project as well. Thanks for the change

@matthewKanderka
Copy link

I need this for my project too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants