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() ); }