hapijs / good

hapi process monitoring
Other
525 stars 160 forks source link

Logging auth in request options #556

Closed nick-xie closed 5 years ago

nick-xie commented 7 years ago

The includes option for requests currently has valid values of ['headers', 'payload'].

I think it would be helpful if it could also take 'auth' as a value since it could allow logs to include user account(s) attached to the request.

I can submit a pretty simple PR for this

arb commented 7 years ago

What would be logged with this new auth option?

nick-xie commented 7 years ago

request.auth would be

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.