@@ -454,6 +454,8 @@ ProxyClientBase<Interface, Impl>::ProxyClientBase(typename Interface::Client cli
454
454
: m_client(std::move(client)), m_context(connection)
455
455
456
456
{
457
+ MP_LOG (*m_context.loop , Log::Info) << " Creating " << CxxTypeName (*this ) << " " << this ;
458
+
457
459
// Handler for the connection getting destroyed before this client object.
458
460
auto disconnect_cb = m_context.connection ->addSyncCleanup ([this ]() {
459
461
// Release client capability by move-assigning to temporary.
@@ -510,13 +512,16 @@ ProxyClientBase<Interface, Impl>::ProxyClientBase(typename Interface::Client cli
510
512
template <typename Interface, typename Impl>
511
513
ProxyClientBase<Interface, Impl>::~ProxyClientBase () noexcept
512
514
{
515
+ MP_LOG (*m_context.loop , Log::Info) << " Cleaning up " << CxxTypeName (*this ) << " " << this ;
513
516
CleanupRun (m_context.cleanup_fns );
517
+ MP_LOG (*m_context.loop , Log::Info) << " Destroying " << CxxTypeName (*this ) << " " << this ;
514
518
}
515
519
516
520
template <typename Interface, typename Impl>
517
521
ProxyServerBase<Interface, Impl>::ProxyServerBase(std::shared_ptr<Impl> impl, Connection& connection)
518
522
: m_impl(std::move(impl)), m_context(&connection)
519
523
{
524
+ MP_LOG (*m_context.loop , Log::Info) << " Creating " << CxxTypeName (*this ) << " " << this ;
520
525
assert (m_impl);
521
526
}
522
527
@@ -535,6 +540,7 @@ ProxyServerBase<Interface, Impl>::ProxyServerBase(std::shared_ptr<Impl> impl, Co
535
540
template <typename Interface, typename Impl>
536
541
ProxyServerBase<Interface, Impl>::~ProxyServerBase ()
537
542
{
543
+ MP_LOG (*m_context.loop , Log::Info) << " Cleaning up " << CxxTypeName (*this ) << " " << this ;
538
544
if (m_impl) {
539
545
// If impl is non-null at this point, it means no client is waiting for
540
546
// the m_impl server object to be destroyed synchronously. This can
@@ -561,6 +567,7 @@ ProxyServerBase<Interface, Impl>::~ProxyServerBase()
561
567
});
562
568
}
563
569
assert (m_context.cleanup_fns .empty ());
570
+ MP_LOG (*m_context.loop , Log::Info) << " Destroying " << CxxTypeName (*this ) << " " << this ;
564
571
}
565
572
566
573
// ! If the capnp interface defined a special "destroy" method, as described the
0 commit comments