Feature #14629
closedAdd option control LCDProc ``syslog`` behavior
100%
Description
Currently there is no way via the package config GUI to disable messages getting written to the /var/log/system.log. This results in a high frequency of LCDd messages filling up the log
Jul 29 20:03:00 pfSense LCDd30335: output states changed
Jul 29 20:03:06 pfSense LCDd30335: output states changed
Jul 29 20:03:12 pfSense LCDd30335: output states changed
Jul 29 20:03:18 pfSense LCDd30335: output states changed
Jul 29 20:03:24 pfSense LCDd30335: output states changed
Jul 29 20:03:30 pfSense LCDd30335: output states changed
Jul 29 20:03:36 pfSense LCDd30335: output states changed
Jul 29 20:03:41 pfSense LCDd30335: output states changed
Jul 29 20:03:47 pfSense LCDd30335: output states changed
Jul 29 20:03:53 pfSense LCDd30335: output states changed
Jul 29 20:03:59 pfSense LCDd30335: output states changed
Jul 29 20:04:05 pfSense LCDd30335: output states changed
Jul 29 20:04:11 pfSense LCDd30335: output states changed
Jul 29 20:04:17 pfSense LCDd30335: output states changed
Jul 29 20:04:23 pfSense LCDd30335: output states changed
Jul 29 20:04:29 pfSense LCDd30335: output states changed
Jul 29 20:04:35 pfSense LCDd30335: output states changed
Jul 29 20:04:41 pfSense LCDd30335: output states changed
Jul 29 20:04:47 pfSense LCDd30335: output states changed
Jul 29 20:04:53 pfSense LCDd30335: output states changed
Jul 29 20:04:59 pfSense LCDd30335: output states changed
Jul 29 20:05:05 pfSense LCDd30335: output states changed
Jul 29 20:05:11 pfSense LCDd30335: output states changed
Jul 29 20:05:17 pfSense LCDd30335: output states changed
Jul 29 20:05:23 pfSense LCDd30335: output states changed
Jul 29 20:05:28 pfSense LCDd30335: output states changed
Jul 29 20:05:34 pfSense LCDd30335: output states changed
Jul 29 20:05:40 pfSense LCDd30335: output states changed
Jul 29 20:05:46 pfSense LCDd30335: output states changed
Jul 29 20:05:52 pfSense LCDd30335: output states changed
Jul 29 20:05:58 pfSense LCDd30335: output states changed
Jul 29 20:06:04 pfSense LCDd30335: output states changed
There is a setting in the /usr/local/etc/LCDd.conf file that can be manually changed, but the file gets overwritten if you save the LCDPROC package settings again or restart the LCDPROC daemon
ReportToSyslog=no
Files
Updated by Elvis Impersonator almost 2 years ago
Another options might be to allow changing the log level
ReportLevel=3
ReportLevel = LEVEL
Sets the reporting level. Legal values for LEVEL range from 0 (only critical errors) to 5 (everything including debugging information). If not specified it defaults to 2 (warnings and errors only).
This setting can be overridden on LCDd's command line using the -r LEVEL option.
ReportToSyslog = { yes | no }
Should we report to syslog (yes) instead of stderr (no)? Default value is no.
This setting can be overridden on LCDd's command line using the -s NUMBER option. Passing -s 1 on the command line enables reporting to syslog while -s 0 disables it.
Updated by Jim Pingle almost 2 years ago
- Tracker changed from Bug to Feature
- Status changed from New to Feedback
- % Done changed from 0 to 100
- Affected Version deleted (
2.7.0) - Affected Plus Version deleted (
23.05.1) - Affected Architecture deleted (
All)
Added in LCDProc package v0.11.4_2 which is building now and will be available shortly.
Updated by Jim Pingle almost 2 years ago
Worth noting that the old hardcoded default was level 3. When I added the option I made the new default level 2 to align with the LCDProc default. When set to level 2, I do not see the "output states changes" error that I saw before.
So for those experiencing the problem before, the errors should be gone on upgrade without any manual intervention. If the messages do come back, feel free to select a lower log level (1 or 0) or disable it entirely.
Updated by Jim Pingle almost 2 years ago
- Subject changed from Add Option to Disable Writing LCDPROC messages to system.log. to Add option control LCDProc ``syslog`` behavior
Updated by Danilo Zrenjanin over 1 year ago
- Status changed from Feedback to Resolved
Tested the package version:
0.11.5_1
It looks good. The default Log Level value is 2
cat /usr/local/etc/LCDd.conf | grep ReportLevel ReportLevel=2
And it can be changed in the Log Level dropdown menu.
I am marking this ticket resolved.