@@ -511,6 +511,7 @@ ProxyClientBase<Interface, Impl>::ProxyClientBase(typename Interface::Client cli
511511 : m_client(std::move(client)), m_context(connection)
512512
513513{
514+ MP_LOG (*m_context.loop , Log::Debug) << " Creating " << CxxTypeName (*this ) << " " << this ;
514515 // Handler for the connection getting destroyed before this client object.
515516 auto disconnect_cb = m_context.connection ->addSyncCleanup ([this ]() {
516517 // Release client capability by move-assigning to temporary.
@@ -567,13 +568,16 @@ ProxyClientBase<Interface, Impl>::ProxyClientBase(typename Interface::Client cli
567568template <typename Interface, typename Impl>
568569ProxyClientBase<Interface, Impl>::~ProxyClientBase () noexcept
569570{
571+ MP_LOG (*m_context.loop , Log::Debug) << " Cleaning up " << CxxTypeName (*this ) << " " << this ;
570572 CleanupRun (m_context.cleanup_fns );
573+ MP_LOG (*m_context.loop , Log::Debug) << " Destroying " << CxxTypeName (*this ) << " " << this ;
571574}
572575
573576template <typename Interface, typename Impl>
574577ProxyServerBase<Interface, Impl>::ProxyServerBase(std::shared_ptr<Impl> impl, Connection& connection)
575578 : m_impl(std::move(impl)), m_context(&connection)
576579{
580+ MP_LOG (*m_context.loop , Log::Debug) << " Creating " << CxxTypeName (*this ) << " " << this ;
577581 assert (m_impl);
578582}
579583
@@ -592,6 +596,7 @@ ProxyServerBase<Interface, Impl>::ProxyServerBase(std::shared_ptr<Impl> impl, Co
592596template <typename Interface, typename Impl>
593597ProxyServerBase<Interface, Impl>::~ProxyServerBase ()
594598{
599+ MP_LOG (*m_context.loop , Log::Debug) << " Cleaning up " << CxxTypeName (*this ) << " " << this ;
595600 if (m_impl) {
596601 // If impl is non-null at this point, it means no client is waiting for
597602 // the m_impl server object to be destroyed synchronously. This can
@@ -618,6 +623,7 @@ ProxyServerBase<Interface, Impl>::~ProxyServerBase()
618623 });
619624 }
620625 assert (m_context.cleanup_fns .empty ());
626+ MP_LOG (*m_context.loop , Log::Debug) << " Destroying " << CxxTypeName (*this ) << " " << this ;
621627}
622628
623629// ! If the capnp interface defined a special "destroy" method, as described the
0 commit comments