@@ -454,6 +454,8 @@ ProxyClientBase<Interface, Impl>::ProxyClientBase(typename Interface::Client cli
454454 : m_client(std::move(client)), m_context(connection)
455455
456456{
457+ MP_LOG (*m_context.loop , Log::Info) << " Creating " << CxxTypeName (*this ) << " " << this ;
458+
457459 // Handler for the connection getting destroyed before this client object.
458460 auto disconnect_cb = m_context.connection ->addSyncCleanup ([this ]() {
459461 // Release client capability by move-assigning to temporary.
@@ -510,13 +512,16 @@ ProxyClientBase<Interface, Impl>::ProxyClientBase(typename Interface::Client cli
510512template <typename Interface, typename Impl>
511513ProxyClientBase<Interface, Impl>::~ProxyClientBase () noexcept
512514{
515+ MP_LOG (*m_context.loop , Log::Info) << " Cleaning up " << CxxTypeName (*this ) << " " << this ;
513516 CleanupRun (m_context.cleanup_fns );
517+ MP_LOG (*m_context.loop , Log::Info) << " Destroying " << CxxTypeName (*this ) << " " << this ;
514518}
515519
516520template <typename Interface, typename Impl>
517521ProxyServerBase<Interface, Impl>::ProxyServerBase(std::shared_ptr<Impl> impl, Connection& connection)
518522 : m_impl(std::move(impl)), m_context(&connection)
519523{
524+ MP_LOG (*m_context.loop , Log::Info) << " Creating " << CxxTypeName (*this ) << " " << this ;
520525 assert (m_impl);
521526}
522527
@@ -535,6 +540,7 @@ ProxyServerBase<Interface, Impl>::ProxyServerBase(std::shared_ptr<Impl> impl, Co
535540template <typename Interface, typename Impl>
536541ProxyServerBase<Interface, Impl>::~ProxyServerBase ()
537542{
543+ MP_LOG (*m_context.loop , Log::Info) << " Cleaning up " << CxxTypeName (*this ) << " " << this ;
538544 if (m_impl) {
539545 // If impl is non-null at this point, it means no client is waiting for
540546 // the m_impl server object to be destroyed synchronously. This can
@@ -561,6 +567,7 @@ ProxyServerBase<Interface, Impl>::~ProxyServerBase()
561567 });
562568 }
563569 assert (m_context.cleanup_fns .empty ());
570+ MP_LOG (*m_context.loop , Log::Info) << " Destroying " << CxxTypeName (*this ) << " " << this ;
564571}
565572
566573// ! If the capnp interface defined a special "destroy" method, as described the
0 commit comments