fix(help): include .2 in merged diagnostics and drop peer names from call logs
@@ -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.108
pub fn read_merged(max_bytes: u64) -> String {108
pub 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
115
pub fn clear_logs() -> std::io::Result<()> {115
pub fn clear_logs() -> std::io::Result<()> {@@ -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_name298
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 {