]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: do not "warn" about mundane emergency actions 10428/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Oct 2018 15:27:20 +0000 (17:27 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Oct 2018 17:32:09 +0000 (19:32 +0200)
commitc7adcb1af9946d0672c16bb4bb7eedf39b3d1fcb
tree385536c6cf55f636616a879c8ce7913860d3002b
parenta400bd8c2a6285576edf8e2147e1d17aab129501
core: do not "warn" about mundane emergency actions

For example in a container we'd log:
Oct 17 17:01:10 rawhide systemd[1]: Started Power-Off.
Oct 17 17:01:10 rawhide systemd[1]: Forcibly powering off: unit succeeded
Oct 17 17:01:10 rawhide systemd[1]: Reached target Power-Off.
Oct 17 17:01:10 rawhide systemd[1]: Shutting down.
and on the console we'd write (in red)
[  !!  ] Forcibly powering off: unit succeeded

This is not useful in any way, and the fact that we're calling an "emergency action"
is an internal implementation detail. Let's log about c-a-d and the watchdog actions
only.
src/core/emergency-action.c
src/core/emergency-action.h
src/core/job.c
src/core/manager.c
src/core/unit.c