From cb33f26d5c32bc3f70352b83c72882f59afd5809 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Wed, 8 Sep 2021 19:22:54 +0200 Subject: [PATCH] Log room retrieval failure in Client::process_sync --- matrix_sdk/src/client.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/matrix_sdk/src/client.rs b/matrix_sdk/src/client.rs index ac933edec..1a603ea19 100644 --- a/matrix_sdk/src/client.rs +++ b/matrix_sdk/src/client.rs @@ -2053,7 +2053,7 @@ impl Client { for (room_id, room_info) in &rooms.join { let room = self.get_room(room_id); if room.is_none() { - // raise warning? + error!("Can't call event handler, room {} not found", room_id); continue; } @@ -2070,7 +2070,7 @@ impl Client { for (room_id, room_info) in &rooms.leave { let room = self.get_room(room_id); if room.is_none() { - // raise warning? + error!("Can't call event handler, room {} not found", room_id); continue; } @@ -2085,7 +2085,7 @@ impl Client { for (room_id, room_info) in &rooms.invite { let room = self.get_room(room_id); if room.is_none() { - // raise warning? + error!("Can't call event handler, room {} not found", room_id); continue; } @@ -2099,7 +2099,7 @@ impl Client { let room = match self.get_room(room_id) { Some(room) => room, None => { - // raise warning? + warn!("Can't call notification handler, room {} not found", room_id); continue; } };