[Libreoffice-commits] online.git: loolwsd/test

Tor Lillqvist tml at collabora.com
Mon Sep 19 10:55:58 UTC 2016


 loolwsd/test/helpers.hpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d654c464df309cb8a3a60b568c7cb9f51e1417ec
Author: Tor Lillqvist <tml at collabora.com>
Date:   Mon Sep 19 13:53:14 2016 +0300

    Don't log the contents of CLOSE frames

diff --git a/loolwsd/test/helpers.hpp b/loolwsd/test/helpers.hpp
index 32f009b..2af9070 100644
--- a/loolwsd/test/helpers.hpp
+++ b/loolwsd/test/helpers.hpp
@@ -296,7 +296,8 @@ std::vector<char> getResponseMessage(Poco::Net::WebSocket& ws, const std::string
                     break;
                 }
 
-                std::cerr << name << "Ignored: " << message << std::endl;
+                if ((flags & Poco::Net::WebSocket::FRAME_OP_BITMASK) != Poco::Net::WebSocket::FRAME_OP_CLOSE)
+                    std::cerr << name << "Ignored: " << message << std::endl;
             }
             else
             {


More information about the Libreoffice-commits mailing list