androidd cloudlogs are errors

old-commit-hash: fc8d402713f1b84b3e75067f09794236852f4f20
This commit is contained in:
Adeeb Shihadeh
2022-01-19 23:48:02 -08:00
parent b0071e3742
commit 5a5ef1bf74
+2 -2
View File
@@ -49,7 +49,7 @@ def main():
if len(procs):
for p in WATCHED_PROCS:
if cur[p] != procs[p]:
cloudlog.event("android service pid changed", proc=p, cur=cur[p], prev=procs[p])
cloudlog.event("android service pid changed", proc=p, cur=cur[p], prev=procs[p], error=True)
procs.update(cur)
if os.path.exists(MODEM_PATH):
@@ -68,7 +68,7 @@ def main():
# handle excessive modem crashes
if crash_count > MAX_MODEM_CRASHES and not modem_killed:
cloudlog.event("killing modem")
cloudlog.event("killing modem", error=True)
with open("/sys/kernel/debug/msm_subsys/modem", "w") as f:
f.write("put")
modem_killed = True