core/unit: place OnFailure= handling close to OnSuccess=
authorMike Yuan <me@yhndnzj.com>
Mon, 3 Jun 2024 04:15:15 +0000 (06:15 +0200)
committerMike Yuan <me@yhndnzj.com>
Sun, 9 Jun 2024 12:52:11 +0000 (14:52 +0200)
commit8c4514b258f35b9e9a05dd483b7605adac732b6f
tree496c124ce382515cc1c26473f1cbe2a1138d9bc5
parentb984151e502ffbc31c61eb9eec5f2046d77608df
core/unit: place OnFailure= handling close to OnSuccess=

While at it, the duplicate log of "Unit entered failed state"
is dropped. Since the state change would be logged by each
unit type already, before calling unit_notify().
src/core/unit.c