diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-04-21 10:34:05 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-04-21 17:08:16 +0200 |
commit | ac9f55ed407f2994e22422f39456a2f68027c39a (patch) | |
tree | f3f0230d0c7af639e4855d6aeed9eb88068d2d7f /src/import | |
parent | resolved: replace private log level control API with generic one (diff) | |
download | systemd-ac9f55ed407f2994e22422f39456a2f68027c39a.tar.xz systemd-ac9f55ed407f2994e22422f39456a2f68027c39a.zip |
tree-wide: implement new log control API dbus interface in all our daemons
Diffstat (limited to 'src/import')
-rw-r--r-- | src/import/importd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/import/importd.c b/src/import/importd.c index c4e8920169..8977ebd835 100644 --- a/src/import/importd.c +++ b/src/import/importd.c @@ -7,6 +7,7 @@ #include "alloc-util.h" #include "bus-common-errors.h" +#include "bus-log-control-api.h" #include "bus-polkit.h" #include "def.h" #include "fd-util.h" @@ -1308,6 +1309,10 @@ static int manager_add_bus_objects(Manager *m) { if (r < 0) return log_error_errno(r, "Failed to add transfer enumerator: %m"); + r = bus_log_control_api_register(m->bus); + if (r < 0) + return r; + r = sd_bus_request_name_async(m->bus, NULL, "org.freedesktop.import1", 0, NULL, NULL); if (r < 0) return log_error_errno(r, "Failed to request name: %m"); |