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

Is there any way to turn off "Closing client" messages? #97

Open
cbrake opened this issue Mar 7, 2023 · 3 comments
Open

Is there any way to turn off "Closing client" messages? #97

cbrake opened this issue Mar 7, 2023 · 3 comments

Comments

@cbrake
Copy link

cbrake commented Mar 7, 2023

I have an application that occasionally scans looking for new devices -- is there any way to turn off the "Closing client" log message:

https://github.com/hashicorp/mdns/blob/master/client.go#L188

Or is there a good reason to have this message in a running system?

@xiegeo
Copy link

xiegeo commented Aug 17, 2023

You can do this as a workaround:

func init() {
	log.Default().SetOutput(io.Discard)
}

@cbrake
Copy link
Author

cbrake commented Aug 17, 2023

thanks @xiegeo!

is there any reason this message can't be simply removed? Is this repo still maintained or should it be forked?

@cbrake
Copy link
Author

cbrake commented Aug 22, 2023

forked in Simple IoT project: https://github.com/simpleiot/mdns

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