Changes
diff --git a/src/matrix.rs b/src/matrix.rs
index 4e89c6d..e971084 100644
--- a/src/matrix.rs
+++ b/src/matrix.rs
@@ -23,6 +23,7 @@ use matrix_sdk::{
use serde_json::Value;
use sha2::{Digest, Sha256};
use tokio::sync::{Mutex, RwLock};
+use tracing::debug;
use crate::{config::MatrixConfig, errors::MatrixError, models::InvocationCandidate};
@@ -136,8 +137,18 @@ impl MatrixClient {
let mut rooms = Vec::new();
for (room_id, update) in response.rooms.joined {
if !self.config.allowed_room_ids.contains(room_id.as_str()) {
+ debug!(
+ room_id = %room_id,
+ timeline_event_count = update.timeline.events.len(),
+ "matrix_sync_room_not_allowed"
+ );
continue;
}
+ debug!(
+ room_id = %room_id,
+ timeline_event_count = update.timeline.events.len(),
+ "matrix_sync_room_allowed"
+ );
let events = update
.timeline
.events