add extra logging for rawgpsd opcode crash

old-commit-hash: 182c5c48102a8d719402eece658c16f36f3d7046
This commit is contained in:
Kurt Nistelberger
2022-10-11 17:41:20 -07:00
parent 4df9e825ae
commit 52e592ddc1
+2
View File
@@ -179,6 +179,8 @@ def main() -> NoReturn:
while 1:
opcode, payload = diag.recv()
if opcode != DIAG_LOG_F:
cloudlog.exception(f"Unhandled opcode: {opcode}")
assert opcode == DIAG_LOG_F
(pending_msgs, log_outer_length), inner_log_packet = unpack_from('<BH', payload), payload[calcsize('<BH'):]