@@ -495,6 +495,8 @@ ProxyClientBase<Interface, Impl>::ProxyClientBase(typename Interface::Client cli
495495 : m_client(std::move(client)), m_context(connection)
496496
497497{
498+ MP_LOG (*m_context.loop , Log::Info) << " Creating " << CxxTypeName (*this ) << " " << this ;
499+
498500 // Handler for the connection getting destroyed before this client object.
499501 auto disconnect_cb = m_context.connection ->addSyncCleanup ([this ]() {
500502 // Release client capability by move-assigning to temporary.
@@ -551,13 +553,16 @@ ProxyClientBase<Interface, Impl>::ProxyClientBase(typename Interface::Client cli
551553template <typename Interface, typename Impl>
552554ProxyClientBase<Interface, Impl>::~ProxyClientBase () noexcept
553555{
556+ MP_LOG (*m_context.loop , Log::Info) << " Cleaning up " << CxxTypeName (*this ) << " " << this ;
554557 CleanupRun (m_context.cleanup_fns );
558+ MP_LOG (*m_context.loop , Log::Info) << " Destroying " << CxxTypeName (*this ) << " " << this ;
555559}
556560
557561template <typename Interface, typename Impl>
558562ProxyServerBase<Interface, Impl>::ProxyServerBase(std::shared_ptr<Impl> impl, Connection& connection)
559563 : m_impl(std::move(impl)), m_context(&connection)
560564{
565+ MP_LOG (*m_context.loop , Log::Info) << " Creating " << CxxTypeName (*this ) << " " << this ;
561566 assert (m_impl);
562567}
563568
@@ -576,6 +581,7 @@ ProxyServerBase<Interface, Impl>::ProxyServerBase(std::shared_ptr<Impl> impl, Co
576581template <typename Interface, typename Impl>
577582ProxyServerBase<Interface, Impl>::~ProxyServerBase ()
578583{
584+ MP_LOG (*m_context.loop , Log::Info) << " Cleaning up " << CxxTypeName (*this ) << " " << this ;
579585 if (m_impl) {
580586 // If impl is non-null at this point, it means no client is waiting for
581587 // the m_impl server object to be destroyed synchronously. This can
@@ -602,6 +608,7 @@ ProxyServerBase<Interface, Impl>::~ProxyServerBase()
602608 });
603609 }
604610 assert (m_context.cleanup_fns .empty ());
611+ MP_LOG (*m_context.loop , Log::Info) << " Destroying " << CxxTypeName (*this ) << " " << this ;
605612}
606613
607614// ! If the capnp interface defined a special "destroy" method, as described the
0 commit comments