Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfe9fbab authored by Steven Moreland's avatar Steven Moreland
Browse files

servicemanager: log on failed lazy start

libc and init will both log in this case, but the logs are confusing, so
adding a 3rd log where we can share more of a hint for this particular
usecase.

Bug: N/A
Test: boot & force log to happen
Change-Id: I94636610c27d48c1c1a01003ad486ec41ba25275
parent c052fed1
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -481,7 +481,12 @@ void ServiceManager::tryStartService(const std::string& name) {
          name.c_str());

    std::thread([=] {
        (void)base::SetProperty("ctl.interface_start", "aidl/" + name);
        if (!base::SetProperty("ctl.interface_start", "aidl/" + name)) {
            LOG(INFO) << "Tried to start aidl service " << name
                      << " as a lazy service, but was unable to. Usually this happens when a "
                         "service is not installed, but if the service is intended to be used as a "
                         "lazy service, then it may be configured incorrectly.";
        }
    }).detach();
}