BlueGit

ict rusty-teams

fix(help): include .2 in merged diagnostics and drop peer names from call logs

metis Joachim Mild · pushed by metis

Authored 2026-11-14 · 2 weeks ago

Hash
12c445e7df5a503a20b835ac822a9c6e45aa568c
Parent
3d3df244
2 files changed +6 −4
crates/app-base/src/diagnostics.rs +2 −2
@@ -104,12 +104,12 @@ pub fn record(message: impl AsRef<str>) {
104 104 }
105 105 }
106 106
107 /// Chronological merge of `.1` then current (capped), for support packages.
107 /// Chronological merge of rotated slots then current (capped), for support packages.
108 108 pub fn read_merged(max_bytes: u64) -> String {
109 109 let Some(path) = PATH.get() else {
110 110 return String::new();
111 111 };
112 read_ring_merged(path, 1, max_bytes.min(MERGE_CAP_BYTES).max(1))
112 read_ring_merged(path, RING_SLOTS, max_bytes.min(MERGE_CAP_BYTES).max(1))
113 113 }
114 114
115 115 pub fn clear_logs() -> std::io::Result<()> {
@@ -104,12 +104,12 @@ pub fn record(message: impl AsRef<str>) {
104 }
104 }
105}
105}
106
106
107/// Chronological merge of `.1` then current (capped), for support packages.
107/// Chronological merge of rotated slots then current (capped), for support packages.
108pub fn read_merged(max_bytes: u64) -> String {
108pub fn read_merged(max_bytes: u64) -> String {
109 let Some(path) = PATH.get() else {
109 let Some(path) = PATH.get() else {
110 return String::new();
110 return String::new();
111 };
111 };
112 read_ring_merged(path, 1, max_bytes.min(MERGE_CAP_BYTES).max(1))
112 read_ring_merged(path, RING_SLOTS, max_bytes.min(MERGE_CAP_BYTES).max(1))
113}
113}
114
114
115pub fn clear_logs() -> std::io::Result<()> {
115pub fn clear_logs() -> std::io::Result<()> {
crates/app-state/src/call/actions.rs +4 −2
@@ -294,8 +294,10 @@ impl AppState {
294 294 ));
295 295 if let Some(call) = self.call.as_ref() {
296 296 crate::diagnostics::record(format!(
297 "calls: start kind={:?} incoming={} peer={}",
298 call.model.kind, call.model.incoming, call.model.peer_name
297 "calls: start kind={:?} incoming={} peer_chars={}",
298 call.model.kind,
299 call.model.incoming,
300 call.model.peer_name.chars().count()
299 301 ));
300 302 }
301 303 if self.call_share_sound {
@@ -294,8 +294,10 @@ impl AppState {
294 ));
294 ));
295 if let Some(call) = self.call.as_ref() {
295 if let Some(call) = self.call.as_ref() {
296 crate::diagnostics::record(format!(
296 crate::diagnostics::record(format!(
297 "calls: start kind={:?} incoming={} peer={}",
297 "calls: start kind={:?} incoming={} peer_chars={}",
298 call.model.kind, call.model.incoming, call.model.peer_name
298 call.model.kind,
299 call.model.incoming,
300 call.model.peer_name.chars().count()
299 ));
301 ));
300 }
302 }
301 if self.call_share_sound {
303 if self.call_share_sound {