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

Commit cdfa460c authored by Devin Moore's avatar Devin Moore
Browse files

dumpstate: Log an error when we fail to start a dump thread

Test: adb shell dumpstate && adb logcat | grep "Failed to start"
Bug: 273937310
Change-Id: Iaf56795a211090f631a21a9c4f61353be5bc8741
parent 04d05a69
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1270,6 +1270,9 @@ static Dumpstate::RunStatus RunDumpsysTextByPriority(const std::string& title, i
                dumpsys.writeDumpFooter(STDOUT_FILENO, service, elapsed_seconds);
                bool dump_complete = (status == OK);
                dumpsys.stopDumpThread(dump_complete);
            } else {
                MYLOGE("Failed to start dump thread for service: %s, status: %d",
                       String8(service).c_str(), status);
            }
        }