system/corennnnn
修訂 | c64c982e729e4c4ff5c7d1878488ed216738d443 (tree) |
---|---|
時間 | 2016-07-29 06:11:32 |
作者 | Felipe Leme <felipeal@goog...> |
Commiter | Felipe Leme |
Improved keychord logging.
Often a bugreport is accidentally triggered by the combo keys, but there
is nothing in the bugreport to confirm that action because init's
klog level is KLOG_NOTICE_LEVEL.
This change change keychord's INFO messages to NOTICE, and also logs the
case where a service was not launched because ADB was disabled.
BUG: 30440213
BUG: 30345559
Change-Id: I6ccadef1621cb41dcd15e7c1660366f0e147dc7a
@@ -78,11 +78,13 @@ static void handle_keychord() { | ||
78 | 78 | if (adb_enabled == "running") { |
79 | 79 | Service* svc = ServiceManager::GetInstance().FindServiceByKeychord(id); |
80 | 80 | if (svc) { |
81 | - INFO("Starting service %s from keychord\n", svc->name().c_str()); | |
81 | + NOTICE("Starting service '%s' from keychord %d\n", svc->name().c_str(), id); | |
82 | 82 | svc->Start(); |
83 | 83 | } else { |
84 | - ERROR("service for keychord %d not found\n", id); | |
84 | + ERROR("Service for keychord %d not found\n", id); | |
85 | 85 | } |
86 | + } else { | |
87 | + WARNING("Not starting service for keychord %d because ADB is disabled\n", id); | |
86 | 88 | } |
87 | 89 | } |
88 | 90 |