diff --git a/src/Listener/LogRedirectListener.php b/src/Listener/LogRedirectListener.php index d8653d1..c72f247 100644 --- a/src/Listener/LogRedirectListener.php +++ b/src/Listener/LogRedirectListener.php @@ -71,7 +71,9 @@ public function process(object $event) if ($recv === false && $sock->errCode !== SOCKET_ETIMEDOUT) { throw new SocketAcceptException('Socket is closed', $sock->errCode); } - $this->logOutput((string) $recv); + if ($recv !== false) { + $this->logOutput((string) $recv); + } } catch (\Throwable $exception) { $this->logThrowable($exception); if ($exception instanceof SocketAcceptException) {