@@ -409,6 +409,8 @@ ProxyClientBase<Interface, Impl>::ProxyClientBase(typename Interface::Client cli
409409 : m_client(std::move(client)), m_context(connection)
410410
411411{
412+ m_context.loop ->log () << " Creating " << TypeName (*this ) << " " << this ;
413+
412414 // Handler for the connection getting destroyed before this client object.
413415 auto disconnect_cb = m_context.connection ->addSyncCleanup ([this ]() {
414416 // Release client capability by move-assigning to temporary.
@@ -465,13 +467,16 @@ ProxyClientBase<Interface, Impl>::ProxyClientBase(typename Interface::Client cli
465467template <typename Interface, typename Impl>
466468ProxyClientBase<Interface, Impl>::~ProxyClientBase () noexcept
467469{
470+ m_context.loop ->log () << " Cleaning up " << TypeName (*this ) << " " << this ;
468471 CleanupRun (m_context.cleanup_fns );
472+ m_context.loop ->log () << " Destroying " << TypeName (*this ) << " " << this ;
469473}
470474
471475template <typename Interface, typename Impl>
472476ProxyServerBase<Interface, Impl>::ProxyServerBase(std::shared_ptr<Impl> impl, Connection& connection)
473477 : m_impl(std::move(impl)), m_context(&connection)
474478{
479+ m_context.loop ->log () << " Creating " << TypeName (*this ) << " " << this ;
475480 assert (m_impl);
476481}
477482
@@ -490,6 +495,7 @@ ProxyServerBase<Interface, Impl>::ProxyServerBase(std::shared_ptr<Impl> impl, Co
490495template <typename Interface, typename Impl>
491496ProxyServerBase<Interface, Impl>::~ProxyServerBase ()
492497{
498+ m_context.loop ->log () << " Cleaning up " << TypeName (*this ) << " " << this ;
493499 if (m_impl) {
494500 // If impl is non-null at this point, it means no client is waiting for
495501 // the m_impl server object to be destroyed synchronously. This can
@@ -516,6 +522,7 @@ ProxyServerBase<Interface, Impl>::~ProxyServerBase()
516522 });
517523 }
518524 assert (m_context.cleanup_fns .empty ());
525+ m_context.loop ->log () << " Destroying " << TypeName (*this ) << " " << this ;
519526}
520527
521528// ! If the capnp interface defined a special "destroy" method, as described the
0 commit comments