From 98f1352159de43355499f16879d39e86b7990e35 Mon Sep 17 00:00:00 2001 From: ViniciusCestarii Date: Mon, 16 Mar 2026 13:11:35 -0300 Subject: [PATCH] log: add socket connected info message and demote destroy logs to debug --- include/mp/proxy-io.h | 1 + include/mp/proxy-types.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/mp/proxy-io.h b/include/mp/proxy-io.h index c298257..12442cf 100644 --- a/include/mp/proxy-io.h +++ b/include/mp/proxy-io.h @@ -814,6 +814,7 @@ void _Serve(EventLoop& loop, kj::Own&& stream, InitImpl& init return kj::heap>(std::shared_ptr(&init, [](InitImpl*){}), connection); }); auto it = loop.m_incoming_connections.begin(); + MP_LOG(loop, Log::Info) << "IPC server: socket connected."; it->onDisconnect([&loop, it] { MP_LOG(loop, Log::Info) << "IPC server: socket disconnected."; loop.m_incoming_connections.erase(it); diff --git a/include/mp/proxy-types.h b/include/mp/proxy-types.h index 369fcc7..c13debf 100644 --- a/include/mp/proxy-types.h +++ b/include/mp/proxy-types.h @@ -645,7 +645,7 @@ template void clientDestroy(Client& client) { if (client.m_context.connection) { - MP_LOG(*client.m_context.loop, Log::Info) << "IPC client destroy " << typeid(client).name(); + MP_LOG(*client.m_context.loop, Log::Debug) << "IPC client destroy " << typeid(client).name(); } else { KJ_LOG(INFO, "IPC interrupted client destroy", typeid(client).name()); } @@ -654,7 +654,7 @@ void clientDestroy(Client& client) template void serverDestroy(Server& server) { - MP_LOG(*server.m_context.loop, Log::Info) << "IPC server destroy " << typeid(server).name(); + MP_LOG(*server.m_context.loop, Log::Debug) << "IPC server destroy " << typeid(server).name(); } //! Entry point called by generated client code that looks like: