]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/cgroup.c
core: apply LogLevelMax to messages about units
authorRyan Hendrickson <ryan.hendrickson@alum.mit.edu>
Fri, 30 Apr 2021 16:47:10 +0000 (12:47 -0400)
committerLennart Poettering <lennart@poettering.net>
Mon, 3 May 2021 15:48:41 +0000 (17:48 +0200)
commitc2503e359a3a03b73acce0a92d27b1b8f54ff92c
tree1e79024029ae8745851ec108c91e3d2aa3daff55
parent16ecdf3c80087613c3bb424b09185a7389d74553
core: apply LogLevelMax to messages about units

This commit applies the filtering imposed by LogLevelMax on a unit's
processes to messages logged by PID1 about the unit as well.

The target use case for this feature is a service that runs on a timer
many times an hour, where the system administrator decides that writing
a generic success message to the journal every few minutes or seconds
adds no diagnostic value and isn't worth the clutter or disk I/O.
man/systemd.exec.xml
src/core/cgroup.c
src/core/execute.c
src/core/job.c
src/core/service.c
src/core/unit.c
src/core/unit.h
test/testsuite-04.units/silent-success.service [new file with mode: 0644]
test/units/testsuite-04.sh