From 634d01ac6993a63f31eadb26ac49128ae01f9860 Mon Sep 17 00:00:00 2001 From: Dmytro Ivanov Date: Wed, 2 Oct 2024 15:07:03 +0200 Subject: Add plugin name command line parameter Make it possible to load commandline provided plugins --- src/zenhttp/servers/httpplugin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/zenhttp/servers') diff --git a/src/zenhttp/servers/httpplugin.cpp b/src/zenhttp/servers/httpplugin.cpp index 09cd76f3e..84cd71a48 100644 --- a/src/zenhttp/servers/httpplugin.cpp +++ b/src/zenhttp/servers/httpplugin.cpp @@ -300,7 +300,10 @@ HttpPluginConnectionHandler::OnBytesRead(const void* Buffer, size_t AvailableByt { ZEN_ASSERT(m_Server); - ZEN_LOG_TRACE(m_Server->m_RequestLog, "connection #{} OnBytesRead: {}", m_ConnectionId, AvailableBytes); + if (AvailableBytes > 0) + { + ZEN_LOG_TRACE(m_Server->m_RequestLog, "connection #{} OnBytesRead: {}", m_ConnectionId, AvailableBytes); + } while (AvailableBytes) { -- cgit v1.2.3