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:
-f Foreground
-b Background (default)
-S Log to syslog (default)
-l N Set log level. Most verbose 0, default 8
-L FILE Log to FILE
-c DIR Cron dir. Default:/etc/crontabs
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: