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

[Feature Request]Disable logging #142

Open
mcmufffin opened this issue Dec 3, 2022 · 1 comment
Open

[Feature Request]Disable logging #142

mcmufffin opened this issue Dec 3, 2022 · 1 comment

Comments

@mcmufffin
Copy link

Dear Team,

we have an issue that due to failing upstream responses (it seems like clients requests records that servfail on porpuse) explode the logfiles. Logging is already set do verbose=disabled but it would be nice to disable it altogether.

Thanks!

@m13253
Copy link
Owner

m13253 commented Dec 3, 2022

Thanks for reporting!

My memory could be wrong but I remember, if the upstream returns a ServFail, doh-server will not log anything, but simply forward the ServFail to the client.
Therefore, if you see ServFail in logs, the most likely reason is that doh-server have trouble connecting to the upstream.
I could be wrong, feel free to correct me if so.

Disabling verbose only disables anything “succeeds”. It will always leave anything “fails” in the log.

If you want to disable all logging, the easiest way is just >/dev/null 2>&1.
This is the most reliable way to ensure zero-logging policy, at the price of more difficult troubleshooting.

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

No branches or pull requests

2 participants