diff options
| author | Anchor Linden <anchor@lindenlab.com> | 2018-02-28 22:42:23 -0800 | 
|---|---|---|
| committer | Anchor Linden <anchor@lindenlab.com> | 2018-02-28 22:42:23 -0800 | 
| commit | 618179a71722e47115a6b021a1eb2be99e46322f (patch) | |
| tree | 7cb94aef6fe27ed0497790f07f8c190cf1944f92 /indra/llmessage/llcorehttputil.cpp | |
| parent | bfbcd6d16931819c43eea8e83963c9f86c6892dd (diff) | |
| parent | 5a12a88f7b53bb99a6b302c35d891a8ecee59855 (diff) | |
Merge
Diffstat (limited to 'indra/llmessage/llcorehttputil.cpp')
| -rw-r--r-- | indra/llmessage/llcorehttputil.cpp | 21 | 
1 files changed, 9 insertions, 12 deletions
| diff --git a/indra/llmessage/llcorehttputil.cpp b/indra/llmessage/llcorehttputil.cpp index 9bf38fb336..ac4b1310a4 100644 --- a/indra/llmessage/llcorehttputil.cpp +++ b/indra/llmessage/llcorehttputil.cpp @@ -84,7 +84,7 @@ void logMessageSuccess(std::string logAuth, std::string url, std::string message  void logMessageFail(std::string logAuth, std::string url, std::string message)  { -    LL_WARNS() << logAuth << " Failure '" << message << "' for " << url << LL_ENDL; +    LL_WARNS("CoreHTTP") << logAuth << " Failure '" << message << "' for " << url << LL_ENDL;  }  //========================================================================= @@ -279,12 +279,10 @@ void HttpCoroHandler::onCompleted(LLCore::HttpHandle handle, LLCore::HttpRespons          result = LLSD::emptyMap();          LLCore::HttpStatus::type_enum_t errType = status.getType(); -        LL_WARNS() -            << "\n--------------------------------------------------------------------------\n" -            << " Error[" << status.toTerseString() << "] cannot access url '" << response->getRequestURL() -            << "' because " << status.toString() -            << "\n--------------------------------------------------------------------------" -            << LL_ENDL; +        LL_WARNS("CoreHTTP") +            << " Error[" << status.toTerseString() << "] cannot "<< response->getRequestMethod()  +            << " to url '" << response->getRequestURL() +            << "' because " << status.toString() << LL_ENDL;          if ((errType >= 400) && (errType < 500))          {              LLSD body = this->parseBody(response, parseSuccess); @@ -299,7 +297,6 @@ void HttpCoroHandler::onCompleted(LLCore::HttpHandle handle, LLCore::HttpRespons                      result = body;                  }              } -          }      }      else @@ -323,7 +320,7 @@ void HttpCoroHandler::onCompleted(LLCore::HttpHandle handle, LLCore::HttpRespons          if (getBoolSetting(HTTP_LOGBODY_KEY))          {              // commenting out, but keeping since this can be useful for debugging -            LL_WARNS() << "Returned body=" << std::endl << httpStatus["error_body"].asString() << LL_ENDL; +            LL_WARNS("CoreHTTP") << "Returned body=" << std::endl << httpStatus["error_body"].asString() << LL_ENDL;          }      } @@ -423,7 +420,7 @@ LLSD HttpCoroLLSDHandler::handleSuccess(LLCore::HttpResponse * response, LLCore:          if (contentType && (HTTP_CONTENT_LLSD_XML == *contentType))          {              std::string thebody = LLCoreHttpUtil::responseToString(response); -            LL_WARNS() << "Failed to deserialize . " << response->getRequestURL() << " [status:" << response->getStatus().toString() << "] " +            LL_WARNS("CoreHTTP") << "Failed to deserialize . " << response->getRequestURL() << " [status:" << response->getStatus().toString() << "] "                  << " body: " << thebody << LL_ENDL;              // Replace the status with a new one indicating the failure. @@ -442,7 +439,7 @@ LLSD HttpCoroLLSDHandler::handleSuccess(LLCore::HttpResponse * response, LLCore:          if (contentType && (HTTP_CONTENT_LLSD_XML == *contentType))          {              std::string thebody = LLCoreHttpUtil::responseToString(response); -            LL_WARNS() << "Failed to deserialize . " << response->getRequestURL() << " [status:" << response->getStatus().toString() << "] " +            LL_WARNS("CoreHTTP") << "Failed to deserialize . " << response->getRequestURL() << " [status:" << response->getStatus().toString() << "] "                  << " body: " << thebody << LL_ENDL;              // Replace the status with a new one indicating the failure. @@ -1210,7 +1207,7 @@ LLSD HttpCoroutineAdapter::buildImmediateErrorResult(const LLCore::HttpRequest::      const std::string &url)   {      LLCore::HttpStatus status = request->getStatus(); -    LL_WARNS() << "Error posting to " << url << " Status=" << status.getStatus() << +    LL_WARNS("CoreHTTP") << "Error posting to " << url << " Status=" << status.getStatus() <<          " message = " << status.getMessage() << LL_ENDL;      // Mimic the status results returned from an http error that we had  | 
