actix: Add logs around drop logic

This commit is contained in:
asonix 2022-12-12 11:04:26 -06:00
parent b641c29885
commit d8eb52d1f7

View file

@ -244,6 +244,7 @@ struct DropNotifier {
impl Drop for DropNotifier { impl Drop for DropNotifier {
fn drop(&mut self) { fn drop(&mut self) {
tracing::warn!("DropNotifier dropped - Arbiter tearing down");
self.notify.notify_waiters(); self.notify.notify_waiters();
} }
} }
@ -270,9 +271,11 @@ impl Deref for ArbiterDropper {
impl Drop for ArbiterDropper { impl Drop for ArbiterDropper {
fn drop(&mut self) { fn drop(&mut self) {
tracing::warn!("Stopping and joining arbiter");
let arbiter = self.arbiter.take().unwrap(); let arbiter = self.arbiter.take().unwrap();
arbiter.stop(); arbiter.stop();
let _ = arbiter.join(); let _ = arbiter.join();
tracing::warn!("Joined");
} }
} }