Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56c1270

Browse files
committed
Minor logging update on observe
1 parent a9dd9d2 commit 56c1270

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/app/observe_handler.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ impl OnObserversChangeDispatcher {
205205
while let Some(event) = self.rx.next().await {
206206
match event {
207207
ObserverDispatchEvent::OnFirstObserver(observers) => {
208-
log::debug!("entered OnFirstObserver");
208+
let path = observers.relative_path();
209+
log::debug!("entered OnFirstObserver for: {path}");
209210
self.resource.on_active(observers).await;
210211

211212
// TODO: We should probably be mutating the state here to drop all of the observers and
@@ -215,7 +216,7 @@ impl OnObserversChangeDispatcher {
215216
// This does mean however that an app cannot signal that for some reason
216217
// there's a problem observing the resource and we must forcefully
217218
// cleanup with our peers.
218-
log::debug!("exit OnFirstObserver");
219+
log::debug!("exit OnFirstObserver for: {path}");
219220
}
220221
}
221222
}

0 commit comments

Comments
 (0)