launch: move debug message
Move the 'Connected' message directly in front of the main-loop entry,
and rename to 'Ready'. This better matches its purpose where we want to
know exactly when setup is done and only runtime requests cause wakeups
anymore.
@@ -1341,10 +1341,6 @@ int launcher_run(Launcher *launcher) {
if (r)
return error_trace(r);
- r = log_commitf(&launcher->log, "Connected\n");
- if (r)
- return error_fold(r);
-
r = sd_bus_attach_event(launcher->bus_controller, launcher->event, SD_EVENT_PRIORITY_NORMAL);
if (r < 0)
return error_origin(r);
@@ -1359,6 +1355,10 @@ int launcher_run(Launcher *launcher) {
return error_fold(r);
}
+ r = log_commitf(&launcher->log, "Ready\n");
+ if (r)
+ return error_fold(r);
+
r = sd_event_loop(launcher->event);
if (r < 0)
return error_origin(r);
