Incorrect loglevels for gateway log
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
- [X] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
- [X] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue
Describe the bug
- PPPoE / Gateway monitoring has had an overhaul in 24.7.2 and its fixed the issues I was having.
I've noticed though that in the System-Gateways-Logfile that the dpinger settings and resets are being marked with a loglevel of Warning. - Warning dpinger exiting on signal 15
- Warning dpinger send_interval 5000ms loss_interval 4000ms time_period 60000ms report_interval 0ms data_len 5 alert_interval 1000ms latency_alarm 0ms loss_alarm ....
To Reproduce
Steps to reproduce the behavior:
- System-Gateways-Logfile
- If gateway monitoring is turned on then the settings for dpinger will be shown with an error level of Warning
Expected behavior
I would have expected both to have a level of 'Informational'
Describe alternatives you considered N/A
Screenshots
Screenshot of both is attached.
Relevant log files
The last day or so of my log is attached.
Environment
Software version used and hardware type:
OPNsense 24.7.2 (amd64). Intel i3-10110U 2.1Ghz Dual Core Protectli Vault VP4630
I‘m marking this upstream. A GitHub repository for dpinger exists where this could be discussed with the author.
Thank you Fichtner - I should log this issue there as well?
Appear to me that it's always warning whenever syslog (-S) is used. Apparently by design.
Ok, I had some closer look at the code, it really has no concept of loglevels. There are 21 logger() calls. For some, the desired loglevel is obvious (and should be error, not warning), for some - not very much so. Regardless - this is nontrivial amount of code to be changed, noone wants to maintain such patchsets downstream.
You really should file an issue / feature request at the dpinger repo.
This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository, please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.