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
FS#4077 - ERROR level instead of INFO level in syslog messages from BusyBox components (crond) #9059
Comments
chder: I noticed this as well when it confused me into thinking the cron was somehow failing to run. I have openwrt forwarding to a syslog server and the logs viewer over there is showing "Severity: Error" Taking a peek at logread on the router itself I get:
According to ps crond is running with:
root@ROUTER:~# crond --help
+ crond --help
BusyBox v1.33.2 (2022-01-23 10:30:30 UTC) multi-call binary.
|
Solve FS#4077 (Github issue openwrt#9059) by allowing users to also log at INFO level instead of only ERROR level. Signed-off-by: Badintral <79549469+Badintral@users.noreply.github.com>
Solve FS#4077 (Github issue openwrt#9059) by allowing users to also log at INFO level instead of only ERROR level. Signed-off-by: Badintral <79549469+Badintral@users.noreply.github.com>
Solve FS#4077 (Github issue openwrt#9059) by allowing users to also log at INFO level instead of only ERROR level. Signed-off-by: Badintral <79549469+Badintral@users.noreply.github.com>
Solve FS#4077 (Github issue openwrt#9059) by allowing users to also log at INFO level instead of only ERROR level. Signed-off-by: Badintral <79549469+Badintral@users.noreply.github.com>
Solve FS#4077 (Github issue openwrt#9059) by allowing users to also log at INFO level instead of only ERROR level. Signed-off-by: Badintral <79549469+Badintral@users.noreply.github.com>
salexa74:
The [[https://git.busybox.net/busybox/tree/Config.in?h=1_31_0#n342|FEATURE_SYSLOG_INFO]] option appeared in BusyBox v. 1.31.0. But in OpenWRT this option is disabled by default: [[https://github.com/openwrt/openwrt/blob/master/package/utils/busybox/Config-defaults.in#L82-L84|master]], [[https://github.com/openwrt/openwrt/blob/openwrt-21.02/package/utils/busybox/Config-defaults.in#L82-L84|openwrt-21.02 branch]] (in order to save about 200 bytes?!). As a result, BusyBox components (for example, crond) in syslog write all messages with the ERROR level instead of INFO level, which misleads users:
Sun Oct 10 19:07:35 2021 cron.err crond[8795]: crond (busybox 1.31.0) started, log level 5
Sun Oct 10 19:08:00 2021 cron.err crond[8795]: USER root pid 9035 cmd /usr/bin/test.sh
Sun Oct 10 19:08:00 2021 cron.err crond[8795]: USER root pid 9036 cmd echo "hello"
The text was updated successfully, but these errors were encountered: