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

Allow specifying level for request start/complete logging #184

Merged

Conversation

roessland
Copy link
Contributor

Fixes #183 .

I couldn't find a way to do this with any existing options so here's a PR that allows specifying the log level for request start, request complete and request error events.

It can be useful to log the request start/complete messages on a lower level, such as debug. For example, if there is too much traffic to log every single request, and you wish to log on debug level by default, and later in the pipeline decide to drop or keep those log entries.

Copy link
Collaborator

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit 8fa00a0 into hapijs:master Jul 17, 2023
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.

Choose log level used for requestStart and requestComplete
2 participants