aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/servers/httpplugin.cpp
diff options
context:
space:
mode:
authorDmytro Ivanov <[email protected]>2024-10-02 15:07:03 +0200
committerDmytro Ivanov <[email protected]>2024-10-02 15:46:41 +0200
commit634d01ac6993a63f31eadb26ac49128ae01f9860 (patch)
treebd406b0957d3910d42f14f5ce3febcd68d192466 /src/zenhttp/servers/httpplugin.cpp
parentadd cmake build config to be able to use clion (diff)
downloadzen-di/plugin-name-wip.tar.xz
zen-di/plugin-name-wip.zip
Add plugin name command line parameterdi/plugin-name-wip
Make it possible to load commandline provided plugins
Diffstat (limited to 'src/zenhttp/servers/httpplugin.cpp')
-rw-r--r--src/zenhttp/servers/httpplugin.cpp5
1 files changed, 4 insertions, 1 deletions
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)
{