]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: log unit failure with type-specific result code 6928/head
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Sep 2017 21:35:58 +0000 (23:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Sep 2017 16:26:18 +0000 (18:26 +0200)
commited77d407d3766e78f96c848aed04da50a0ac7d42
tree0cba4eb5acb61af2b2c10e8bceb642a112cc31cd
parent84b26d5149e227af14126eee744bfd6dae7afb35
core: log unit failure with type-specific result code

This slightly changes how we log about failures. Previously,
service_enter_dead() would log that a service unit failed along with its
result code, and unit_notify() would do this again but without the
result code. For other unit types only the latter would take effect.

This cleans this up: we keep the message in unit_notify() only for debug
purposes, and add type-specific log lines to all our unit types that can
fail, and always place them before unit_notify() is invoked.

Or in other words: the duplicate log message for service units is
removed, and all other unit types get a more useful line with the
precise result code.
src/core/automount.c
src/core/mount.c
src/core/path.c
src/core/scope.c
src/core/service.c
src/core/socket.c
src/core/swap.c
src/core/timer.c
src/core/unit.c