diff --git a/wsd/ProofKey.cpp b/wsd/ProofKey.cpp index 01817ed8f..2c390c19b 100644 --- a/wsd/ProofKey.cpp +++ b/wsd/ProofKey.cpp @@ -148,11 +148,11 @@ Proof::Proof() } catch (const Poco::Exception& e) { - LOG_ERR("Could not open proof RSA key: " << e.displayText()); + LOG_ERR("Could not open proof RSA key, Poco exception: " << e.displayText()); } catch (const std::exception& e) { - LOG_ERR("Could not open proof RSA key: " << e.what()); + LOG_ERR("Could not open proof RSA key, standard exception: " << e.what()); } catch (...) { diff --git a/wsd/Storage.cpp b/wsd/Storage.cpp index 9adc57656..ad4249f4c 100644 --- a/wsd/Storage.cpp +++ b/wsd/Storage.cpp @@ -532,16 +532,27 @@ std::unique_ptr WopiStorage::getWOPIFileInfo(const Au const auto startTime = std::chrono::steady_clock::now(); std::unique_ptr psession(getHTTPClientSession(uriObject)); + Log::StreamLogger logger = Log::trace(); + if (logger.enabled()) + { + logger << "WOPI::CheckFileInfo request header for URI [" << uriAnonym << "]:\n"; + for (const auto& pair : request) + { + logger << '\t' << pair.first << ": " << pair.second << " / "; + } + + LOG_END(logger, true); + } + psession->sendRequest(request); Poco::Net::HTTPResponse response; std::istream& rs = psession->receiveResponse(response); callDuration = (std::chrono::steady_clock::now() - startTime); - Log::StreamLogger logger = Log::trace(); if (logger.enabled()) { - logger << "WOPI::CheckFileInfo header for URI [" << uriAnonym << "]:\n"; + logger << "WOPI::CheckFileInfo response header for URI [" << uriAnonym << "]:\n"; for (const auto& pair : response) { logger << '\t' << pair.first << ": " << pair.second << " / ";