[Libreoffice-commits] online.git: wsd/Storage.cpp
Ashod Nakashian (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jul 1 05:36:16 UTC 2020
wsd/Storage.cpp | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
New commits:
commit 77aa8161807d3e934c9bad48d6494fe9ca029277
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Sat Jun 20 14:07:13 2020 -0400
Commit: Ashod Nakashian <ashnakash at gmail.com>
CommitDate: Wed Jul 1 07:35:53 2020 +0200
wsd: log the response from WOPI CheckFileInfo separately
Change-Id: I8af28a7332903e6ed36dfba6bbd6bfbb5ebbd4db
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96828
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/wsd/Storage.cpp b/wsd/Storage.cpp
index fbda5edb8..6c5a14878 100644
--- a/wsd/Storage.cpp
+++ b/wsd/Storage.cpp
@@ -587,15 +587,17 @@ std::unique_ptr<WopiStorage::WOPIFileInfo> WopiStorage::getWOPIFileInfo(const Au
std::istream& rs = psession->receiveResponse(response);
callDuration = (std::chrono::steady_clock::now() - startTime);
- if (logger.enabled())
+ Log::StreamLogger logRes = Log::trace();
+ if (logRes.enabled())
{
- logger << "WOPI::CheckFileInfo response header for URI [" << uriAnonym << "]:\n";
+ logRes << "WOPI::CheckFileInfo response header for URI [" << uriAnonym
+ << "]: " << response.getStatus() << '\n';
for (const auto& pair : response)
{
- logger << '\t' << pair.first << ": " << pair.second << " / ";
+ logRes << '\t' << pair.first << ": " << pair.second << " / ";
}
- LOG_END(logger, true);
+ LOG_END(logRes, true);
}
if (response.getStatus() != Poco::Net::HTTPResponse::HTTP_OK)
More information about the Libreoffice-commits
mailing list