Skip to content

Commit 9716226

Browse files
committed
Log already joined rooms
1 parent 9df2382 commit 9716226

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

microbot/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl MatrixMessenger {
153153
let sync_monitor = last_synced.clone();
154154
let sync_signal = self.signal.clone();
155155

156-
tracing::info!("Spawning sync task");
156+
tracing::info!("Creating sync future");
157157

158158
let settings = SyncSettings::default()
159159
.token(response.next_batch)
@@ -221,6 +221,8 @@ impl MatrixMessenger {
221221
Ok(room) => tracing::info!(?room, "Joined room"),
222222
Err(err) => tracing::error!(?room, ?err, "Failed to join room"),
223223
}
224+
} else {
225+
tracing::info!(?room, "Received message for already joined room");
224226
}
225227
}
226228

0 commit comments

Comments
 (0)