• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

修訂c64c982e729e4c4ff5c7d1878488ed216738d443 (tree)
時間2016-07-29 06:11:32
作者Felipe Leme <felipeal@goog...>
CommiterFelipe Leme

Log Message

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

Change Summary

差異

--- a/init/keychords.cpp
+++ b/init/keychords.cpp
@@ -78,11 +78,13 @@ static void handle_keychord() {
7878 if (adb_enabled == "running") {
7979 Service* svc = ServiceManager::GetInstance().FindServiceByKeychord(id);
8080 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);
8282 svc->Start();
8383 } else {
84- ERROR("service for keychord %d not found\n", id);
84+ ERROR("Service for keychord %d not found\n", id);
8585 }
86+ } else {
87+ WARNING("Not starting service for keychord %d because ADB is disabled\n", id);
8688 }
8789 }
8890