mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 01:42:50 +08:00
Temporary debug logging for the missing permission-names bug investigation
This commit is contained in:
1 parent
e26b02c449
commit
9d6dcebfa9
1 file changed
+6
@@ -1919,6 +1919,9 @@ async fn run(args: Args) -> Result<()> {
|
|||||||
}
|
}
|
||||||
Some(Ok(StreamItem::MessageResult(handle, result))) => {
|
Some(Ok(StreamItem::MessageResult(handle, result))) => {
|
||||||
if let Some(label) = pending_messages.remove(&handle) {
|
if let Some(label) = pending_messages.remove(&handle) {
|
||||||
|
if label.starts_with("Permission") {
|
||||||
|
eprintln!("DEBUG MessageResult label={label:?} names_len={} pending_permission_list={pending_permission_list} pending_perm_list={pending_perm_list:?} pending_perm_list_raw_some={} pending_permission_catalog={pending_permission_catalog}", permission_names.len(), pending_perm_list_raw.is_some());
|
||||||
|
}
|
||||||
if let Err(e) = result {
|
if let Err(e) = result {
|
||||||
if e.missing_permission.is_some() {
|
if e.missing_permission.is_some() {
|
||||||
emit(&Event::ServerLog {
|
emit(&Event::ServerLog {
|
||||||
@@ -2000,6 +2003,9 @@ async fn run(args: Args) -> Result<()> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some(Ok(StreamItem::MessageEvent(msg))) => {
|
Some(Ok(StreamItem::MessageEvent(msg))) => {
|
||||||
|
if pending_permission_list || pending_perm_list.is_some() {
|
||||||
|
eprintln!("DEBUG MessageEvent variant={msg:?} pending_permission_list={pending_permission_list} pending_perm_list={pending_perm_list:?} names_len={}", permission_names.len());
|
||||||
|
}
|
||||||
if pending_server_log {
|
if pending_server_log {
|
||||||
if let InMessage::ServerLog(log) = &msg {
|
if let InMessage::ServerLog(log) = &msg {
|
||||||
let lines: Vec<String> = log.iter().map(|part| part.log.clone()).collect();
|
let lines: Vec<String> = log.iter().map(|part| part.log.clone()).collect();
|
||||||
|
|||||||
Reference in new issue
Block a user