logind: log a more accurate error when we failed at session creation
authorFranck Bui <fbui@suse.com>
Tue, 17 Mar 2020 17:30:58 +0000 (18:30 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 26 Mar 2020 13:28:15 +0000 (14:28 +0100)
commit6aae7f596afd62a72b18c92f464abc8bebbc8cba
tree2a13caac698dfa4afaeb07315f0ab85561f0ccd5
parentf4d5928122fe632b441145750a03d95fd8dd2cc6
logind: log a more accurate error when we failed at session creation

We used to log the following error:

  "Start job for unit user-1000.slice failed with 'canceled'"

which can be really misleading if the actual job failed at *stopping* a unit.

Indeed "Start" was hard coded but it was wrong since we can also fail with stop
jobs which are enqueued when a session is stopped.

(cherry picked from commit b39648ed47065202b343d1d4bde3232d81fdfecc)
(cherry picked from commit 8f0feac20f7d4c29a42839343308fcd602ec5b63)
src/login/logind-dbus.c