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

How to disable http parsing error logging #4517

Open
umutuzgur opened this issue Jul 10, 2024 · 1 comment
Open

How to disable http parsing error logging #4517

umutuzgur opened this issue Jul 10, 2024 · 1 comment
Labels
support Questions, discussions, and general support

Comments

@umutuzgur
Copy link

Runtime

nodejs

Runtime version

18

Module version

21.3.2

Used with

No response

Any other relevant information

No response

How can we help?

We are using detectify to scan for vulnerabilities at our api. The tool tests a variety of cases. It tests for broken http packages and invalid urls. This leads to an uptick of logs like [error] message: Invalid path: or [log,connection,client,error] message: Parse Error: Invalid method encountered, stack: Error: Parse Error: Invalid method encountered. I was wondering if there was a way to stop hapi from printing them

@umutuzgur umutuzgur added the support Questions, discussions, and general support label Jul 10, 2024
@kanongil
Copy link
Contributor

Setting debug: false at the server level should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Questions, discussions, and general support
Projects
None yet
Development

No branches or pull requests

2 participants