wsd: log the exception message

Change-Id: Ie9b9cfe38645809c57cec40afbcccc1da87386e1
This commit is contained in:
Ashod Nakashian 2020-10-06 23:29:56 -04:00 committed by Ashod Nakashian
parent eb122ec0a0
commit 08dc42bdaa

View file

@ -620,7 +620,7 @@ std::unique_ptr<WopiStorage::WOPIFileInfo> WopiStorage::getWOPIFileInfo(const Au
}
catch (const BadRequestException& exc)
{
LOG_ERR("Cannot get file info from WOPI storage uri [" << uriAnonym << "]. Error: Failed HTTP request authorization");
LOG_ERR("Cannot get file info from WOPI storage uri [" << uriAnonym << "]. Error: " << exc.what());
}
Poco::JSON::Object::Ptr object;
@ -841,7 +841,7 @@ bool WopiStorage::updateLockState(const Authorization& auth, const std::string&
}
catch (const BadRequestException& exc)
{
LOG_ERR("Cannot " << wopiLog << " uri [" << uriAnonym << "]. Error: Failed HTTP request authorization");
LOG_ERR("Cannot " << wopiLog << " uri [" << uriAnonym << "]. Error: " << exc.what());
}
return false;
}
@ -940,7 +940,7 @@ std::string WopiStorage::loadStorageFileToLocal(const Authorization& auth,
}
catch (const BadRequestException& exc)
{
LOG_ERR("Cannot load document from WOPI storage uri [" + uriAnonym + "]. Error: Failed HTTP request authorization");
LOG_ERR("Cannot load document from WOPI storage uri [" + uriAnonym + "]. Error: " << exc.what());
}
return "";
@ -1170,7 +1170,7 @@ WopiStorage::saveLocalFileToStorage(const Authorization& auth, const std::string
}
catch (const BadRequestException& exc)
{
LOG_ERR("Cannot save file to WOPI storage uri [" + uriAnonym + "]. Error: Failed HTTP request authorization");
LOG_ERR("Cannot save file to WOPI storage uri [" + uriAnonym + "]. Error: " << exc.what());
}
return saveResult;