log encodeIdx packets in qlog (#20738)

This commit is contained in:
Adeeb Shihadeh
2021-04-23 16:14:45 -07:00
committed by GitHub
parent 47ad2a485f
commit 9813c0ddbd
+2 -1
View File
@@ -288,8 +288,9 @@ void encoder_thread(int cam_idx) {
eidx.setSegmentNum(rotate_state.cur_seg);
eidx.setSegmentId(out_id);
if (lh) {
// TODO: this should read cereal/services.h for qlog decimation
auto bytes = msg.toBytes();
lh_log(lh, bytes.begin(), bytes.size(), false);
lh_log(lh, bytes.begin(), bytes.size(), true);
}
}
}