From c8719061e4aad75427cce288b81a742449fcf622 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Tue, 28 Dec 2021 13:00:17 -0700 Subject: [PATCH] add unstable flag to rpc context panic --- appmgr/src/context/rpc.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appmgr/src/context/rpc.rs b/appmgr/src/context/rpc.rs index f087acd12..c2d117f6f 100644 --- a/appmgr/src/context/rpc.rs +++ b/appmgr/src/context/rpc.rs @@ -370,9 +370,10 @@ impl Context for RpcContext { impl Deref for RpcContext { type Target = RpcContextSeed; fn deref(&self) -> &Self::Target { + #[cfg(feature = "unstable")] if self.0.is_closed.load(Ordering::SeqCst) { panic!( - "RpcContext used after shutdown! {:?}", + "RpcContext used after shutdown! {}", tracing_error::SpanTrace::capture() ); }