wsd/LOOLWSD.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) New commits: commit dac51dbcbd803a78b76537e491c97d7d7b209e10 Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Mon May 25 20:25:25 2020 +0100 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Mon May 25 21:53:56 2020 +0200
Sample for debugging a specific protocol command. Change-Id: I662c9edb10d1ebbb729cc4c9bc053dc113cb027e Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94807 Tested-by: Michael Meeks <michael.me...@collabora.com> Reviewed-by: Michael Meeks <michael.me...@collabora.com> diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp index aa3a6be1d..a5212dffc 100644 --- a/wsd/LOOLWSD.cpp +++ b/wsd/LOOLWSD.cpp @@ -2238,6 +2238,17 @@ private: Poco::MemoryInputStream startmessage(&socket->getInBuffer()[0], socket->getInBuffer().size());; + +#if 0 // debug a specific command's payload + if (Util::findInVector(socket->getInBuffer(), "insertfile") != std::string::npos) + { + std::ostringstream oss; + oss << "Debug - specific command:\n"; + socket->dumpState(oss); + LOG_INF(oss.str()); + } +#endif + Poco::Net::HTTPRequest request; StreamSocket::MessageMap map; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits