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

logging failed requests #332

Open
nitrocode opened this issue Dec 16, 2019 · 1 comment
Open

logging failed requests #332

nitrocode opened this issue Dec 16, 2019 · 1 comment

Comments

@nitrocode
Copy link

How do I log failed requests? I want to verify if the authorization header is coming in correctly.

@nelsonic
Copy link
Member

@nitrocode good question. You can log anything you want in your validate function.
All the detail from the original HTTP request is available in the request object so you can easily check the auth headers. Please see: https://hapi.dev/api/?v=18.4.0#request-lifecycle

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

No branches or pull requests

2 participants