]> code.ossystems Code Review - openembedded-core.git/commit
rngd: fix --debug to also filter syslog() calls
authorYann Dirson <yann@blade-group.com>
Fri, 9 Oct 2020 16:20:30 +0000 (18:20 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 10 Oct 2020 12:37:44 +0000 (13:37 +0100)
commit914526868656fd279b13ba8e4d721d27cb2a8792
treea7b334b11c65b397e6f58da07b31a3e1e302f554
parent252385bef9b226f32691b8513869ea3e41813b40
rngd: fix --debug to also filter syslog() calls

Debug logs were only controlled by --debug flag while in --foreground mode.
In --daemon mode (the default for us) /var/log/message got stuffed with
details of entropy pool refilling, which is useless in production, and
hamful when log rotation then gets rid of the more useful logs.

This change makes the two modes consistently only produce debug logs when
--debug is specified.

Signed-off-by: Yann Dirson <yann@blade-group.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/rng-tools/rng-tools/0001-rngd-fix-debug-to-also-filter-syslog-calls.patch [new file with mode: 0644]
meta/recipes-support/rng-tools/rng-tools_6.10.bb