diff options
| author | 2021-04-27 18:39:57 +0000 | |
|---|---|---|
| committer | 2021-04-27 18:50:31 +0000 | |
| commit | bfe9fbabf43f2e9e646d0e7e9debe1be90696a81 (patch) | |
| tree | 05a10ea8ad7358f4df6890fb33f80e2ca47b8b07 /cmds/servicemanager/ServiceManager.cpp | |
| parent | c052fed1310874772e2ce1053e85a593ed7f997b (diff) | |
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
Diffstat (limited to 'cmds/servicemanager/ServiceManager.cpp')
| -rw-r--r-- | cmds/servicemanager/ServiceManager.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmds/servicemanager/ServiceManager.cpp b/cmds/servicemanager/ServiceManager.cpp index b429fb3440..90db5091e1 100644 --- a/cmds/servicemanager/ServiceManager.cpp +++ b/cmds/servicemanager/ServiceManager.cpp @@ -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(); } |