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

Commit c64c982e authored by Felipe Leme's avatar Felipe Leme
Browse files

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
parent cd42d658
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -78,11 +78,13 @@ static void handle_keychord() {
    if (adb_enabled == "running") {
        Service* svc = ServiceManager::GetInstance().FindServiceByKeychord(id);
        if (svc) {
            INFO("Starting service %s from keychord\n", svc->name().c_str());
            NOTICE("Starting service '%s' from keychord %d\n", svc->name().c_str(), id);
            svc->Start();
        } else {
            ERROR("service for keychord %d not found\n", id);
            ERROR("Service for keychord %d not found\n", id);
        }
    } else {
        WARNING("Not starting service for keychord %d because ADB is disabled\n", id);
    }
}