Update sentryd.py

This commit is contained in:
firestar5683
2026-08-16 11:07:24 -05:00
parent 83e8064044
commit 60e1615553
+2 -2
View File
@@ -69,7 +69,7 @@ class SentryMode:
return
status = {**status_values, "updatedAt": _utc_now()}
try:
self.params.put("SentryModeStatus", json.dumps(status, separators=(",", ":")))
self.params.put("SentryModeStatus", status)
except Exception:
cloudlog.exception("sentryd: failed to write status")
self._last_status = status_values
@@ -114,7 +114,7 @@ class SentryMode:
cloudlog.exception("sentryd: failed to trim old events")
def _publish_event(self, event: dict) -> None:
self.params.put("SentryModeLastEvent", json.dumps(event, separators=(",", ":")))
self.params.put("SentryModeLastEvent", event)
self._write_status(event["kind"], eventId=event["eventId"])
def publish():