mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-02 17:32:50 +08:00
Temporary debug logging for the blank group-list bug investigation
This commit is contained in:
1 parent
b4ec2a26b6
commit
79df26c3bc
3 files changed
+42
No files matched your search
@@ -1809,6 +1809,9 @@ async fn run(args: Args) -> Result<()> {
|
||||
},
|
||||
LoopOutcome::ConEvent(ev) => match ev {
|
||||
Some(Ok(StreamItem::BookEvents(events))) => {
|
||||
if pending_channel_group_list || pending_server_group_list {
|
||||
eprintln!("DEBUG BookEvents while pending group list: {events:?}");
|
||||
}
|
||||
for event in &events {
|
||||
if let BookEvent::Message { target, invoker, message } = event {
|
||||
match target {
|
||||
@@ -1918,6 +1921,9 @@ async fn run(args: Args) -> Result<()> {
|
||||
}
|
||||
}
|
||||
Some(Ok(StreamItem::MessageResult(handle, result))) => {
|
||||
if pending_channel_group_list || pending_server_group_list {
|
||||
eprintln!("DEBUG MessageResult while pending group list: handle={handle:?} result={result:?}");
|
||||
}
|
||||
if let Some(label) = pending_messages.remove(&handle) {
|
||||
if let Err(e) = result {
|
||||
if e.missing_permission.is_some() {
|
||||
@@ -1931,6 +1937,9 @@ async fn run(args: Args) -> Result<()> {
|
||||
}
|
||||
}
|
||||
Some(Ok(StreamItem::MessageEvent(msg))) => {
|
||||
if pending_channel_group_list || pending_server_group_list {
|
||||
eprintln!("DEBUG MessageEvent while pending group list: {msg:?}");
|
||||
}
|
||||
if pending_server_log {
|
||||
if let InMessage::ServerLog(log) = &msg {
|
||||
let lines: Vec<String> = log.iter().map(|part| part.log.clone()).collect();
|
||||
|
||||
Reference in new issue
Block a user