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

Hide info messages "deleting peer with id" from dmesg #53

Open
oukb opened this issue Nov 13, 2023 · 3 comments
Open

Hide info messages "deleting peer with id" from dmesg #53

oukb opened this issue Nov 13, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@oukb
Copy link

oukb commented Nov 13, 2023

Hi

How can I hide dmesg/syslog messages such as tun*: deleting peer with id 0, reason 2 or move it to openvpn.log?

@ordex
Copy link
Member

ordex commented Nov 13, 2023

It is printed on the INFO kernel loglevel, so you should set your whole kernel log level to something lower than that, but it is not recommended. Does it bother you? I thought it is useful to check when and why dco is deleting a peer.

OpenVPN in userspace should already separately log this kind of activity (when the right log level is enabled), but the fact that userspace is sending a command to DCO doesn't mean that DCO will properly execute it. This is why having that message in the kernel log is still useful.

@oukb
Copy link
Author

oukb commented Nov 13, 2023

Exactly
But maybe add some option to enable/disable these messages?
when there is nothing and suddenly these messages start constantly appearing

@ordex ordex added the enhancement New feature or request label Nov 13, 2023
@ordex
Copy link
Member

ordex commented Nov 13, 2023

Yeah, ideally the debugging system will be extended/improved in the future. If you have any specific idea, feel free to drop a patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants