@@ -409,6 +409,8 @@ ProxyClientBase<Interface, Impl>::ProxyClientBase(typename Interface::Client cli
409
409
: m_client(std::move(client)), m_context(connection)
410
410
411
411
{
412
+ m_context.loop ->log () << " Creating " << TypeName (*this ) << " " << this ;
413
+
412
414
// Handler for the connection getting destroyed before this client object.
413
415
auto disconnect_cb = m_context.connection ->addSyncCleanup ([this ]() {
414
416
// Release client capability by move-assigning to temporary.
@@ -465,13 +467,16 @@ ProxyClientBase<Interface, Impl>::ProxyClientBase(typename Interface::Client cli
465
467
template <typename Interface, typename Impl>
466
468
ProxyClientBase<Interface, Impl>::~ProxyClientBase () noexcept
467
469
{
470
+ m_context.loop ->log () << " Cleaning up " << TypeName (*this ) << " " << this ;
468
471
CleanupRun (m_context.cleanup_fns );
472
+ m_context.loop ->log () << " Destroying " << TypeName (*this ) << " " << this ;
469
473
}
470
474
471
475
template <typename Interface, typename Impl>
472
476
ProxyServerBase<Interface, Impl>::ProxyServerBase(std::shared_ptr<Impl> impl, Connection& connection)
473
477
: m_impl(std::move(impl)), m_context(&connection)
474
478
{
479
+ m_context.loop ->log () << " Creating " << TypeName (*this ) << " " << this ;
475
480
assert (m_impl);
476
481
}
477
482
@@ -490,6 +495,7 @@ ProxyServerBase<Interface, Impl>::ProxyServerBase(std::shared_ptr<Impl> impl, Co
490
495
template <typename Interface, typename Impl>
491
496
ProxyServerBase<Interface, Impl>::~ProxyServerBase ()
492
497
{
498
+ m_context.loop ->log () << " Cleaning up " << TypeName (*this ) << " " << this ;
493
499
if (m_impl) {
494
500
// If impl is non-null at this point, it means no client is waiting for
495
501
// the m_impl server object to be destroyed synchronously. This can
@@ -516,6 +522,7 @@ ProxyServerBase<Interface, Impl>::~ProxyServerBase()
516
522
});
517
523
}
518
524
assert (m_context.cleanup_fns .empty ());
525
+ m_context.loop ->log () << " Destroying " << TypeName (*this ) << " " << this ;
519
526
}
520
527
521
528
// ! If the capnp interface defined a special "destroy" method, as described the
0 commit comments