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

log notice and server-count#179

Closed
oukb opened this issue May 23, 2021 · 2 comments
Closed

log notice and server-count #179

oukb opened this issue May 23, 2021 · 2 comments

Comments

@oukb
Copy link

oukb commented May 23, 2021

Hi

When requesting statistics, notice messages are duplicated in the log as many times as in server-count.
And these messages only with tls ip address and port.
How can these notice messages be hidden?

For example:

server-count: 4

[2021-05-23 20:20:03.214] nsd[2361906]: info: new control connection from 127.0.0.1
[2021-05-23 20:20:03.235] nsd[2361906]: info: remote control connection authenticated
[2021-05-23 20:20:03.276] nsd[2361906]: info: control cmd: stats
[2021-05-23 20:20:03.314] nsd[2361906]: info: remote control stats printed
[2021-05-23 20:20:03.330] nsd[3095317]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:20:03.330] nsd[3095317]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:20:03.331] nsd[3095319]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:20:03.331] nsd[3095319]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:20:03.334] nsd[3095318]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:20:03.334] nsd[3095318]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:20:03.334] nsd[3095320]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:20:03.334] nsd[3095320]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:25:03.834] nsd[2361906]: info: new control connection from 127.0.0.1
[2021-05-23 20:25:03.861] nsd[2361906]: info: remote control connection authenticated
[2021-05-23 20:25:03.901] nsd[2361906]: info: control cmd: stats
[2021-05-23 20:25:03.928] nsd[2361906]: info: remote control stats printed
[2021-05-23 20:25:03.946] nsd[3096000]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:25:03.946] nsd[3096000]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:25:03.951] nsd[3095997]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:25:03.951] nsd[3095997]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:25:03.952] nsd[3095998]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:25:03.952] nsd[3095998]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:25:03.953] nsd[3095999]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:25:03.953] nsd[3095999]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:30:03.381] nsd[2361906]: info: new control connection from 127.0.0.1
[2021-05-23 20:30:03.409] nsd[2361906]: info: remote control connection authenticated
[2021-05-23 20:30:03.450] nsd[2361906]: info: control cmd: stats
[2021-05-23 20:30:03.485] nsd[2361906]: info: remote control stats printed
[2021-05-23 20:30:03.509] nsd[3096665]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:30:03.509] nsd[3096665]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:30:03.514] nsd[3096667]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:30:03.514] nsd[3096667]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:30:03.515] nsd[3096668]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:30:03.515] nsd[3096668]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:30:03.517] nsd[3096666]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:30:03.517] nsd[3096666]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:35:04.071] nsd[2361906]: info: new control connection from 127.0.0.1
[2021-05-23 20:35:04.094] nsd[2361906]: info: remote control connection authenticated
[2021-05-23 20:35:04.135] nsd[2361906]: info: control cmd: stats
[2021-05-23 20:35:04.164] nsd[2361906]: info: remote control stats printed
[2021-05-23 20:35:04.188] nsd[3097545]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:35:04.188] nsd[3097545]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:35:04.189] nsd[3097544]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:35:04.189] nsd[3097544]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:35:04.189] nsd[3097543]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:35:04.190] nsd[3097543]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853
[2021-05-23 20:35:04.191] nsd[3097546]: notice: setup TCP for TLS service on interface 111.111.111.111@853
[2021-05-23 20:35:04.191] nsd[3097546]: notice: setup TCP for TLS service on interface aaaa:bbbb:cccc:1111:2222:3333@853

@wcawijngaards
Copy link
Member

Hi, I have moved the printed information from level 2 to level 4. So that it is only printed on verbosity levels 4 and higher. So if you run at verbosity 0 .. 3 it should not be printed. It used to be printed at level 2.

It happens every time NSD reforks and a new server_child is started, the log message prints. Is this change an improvement for you?

@oukb
Copy link
Author

oukb commented May 25, 2021

Yes, thank you for the solution and explanation

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