Claim the D-Bus name after the extensions start
Move where the D-Bus name is claimed to after the startup functions of
any extensions. This gives the extension code a chance to put objects
on the bus before then just like how the normal Logging.Entry objects
are done.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I643aa06f419660d1c4788699ee322ed21c558cf5
diff --git a/log_manager_main.cpp b/log_manager_main.cpp
index bcd0cbe..432d172 100644
--- a/log_manager_main.cpp
+++ b/log_manager_main.cpp
@@ -32,8 +32,6 @@
// Recreate error d-bus objects from persisted errors.
iMgr.restore();
- bus.request_name(BUSNAME_LOGGING);
-
for (auto& startup : phosphor::logging::Extensions::getStartupFunctions())
{
try
@@ -47,5 +45,7 @@
}
}
+ bus.request_name(BUSNAME_LOGGING);
+
return event.loop();
}