androidd cloudlogs are errors

pull/23586/head
Adeeb Shihadeh 2022-01-19 23:48:02 -08:00
parent 5b2d2f31ef
commit fc8d402713
1 changed files with 2 additions and 2 deletions

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