coredump: Don't log an error if D-Bus isn't running
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 6 Oct 2021 12:20:36 +0000 (13:20 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Oct 2021 16:05:25 +0000 (18:05 +0200)
commit5bb214a786ef6156b952584ef3107aee1e7ecbcd
treeafaa85bdf0f5b7aa8239d39b1306a1a63750bd86
parentb1b3716efebb7c52254b7029a05b1ec0c8d317bd
coredump: Don't log an error if D-Bus isn't running

coredumpctl could be used in a chroot where D-Bus isn't running. If
that's the case, we shouldn't consider it an error if we can't connect
to the D-Bus daemon so let's reduce the severity of the error we log
when we can't connect to D-Bus because the socket doesn't exist.

(cherry picked from commit 414bd2e786f9912f51b82e5fe4a1126179a5652a)
(cherry picked from commit 6745eaa6308b835e2c5e68d49e9bece29fd37fa2)
src/coredump/coredumpctl.c