Added notification that chat report has been sent after the user logs in.

This will also add a line in the chat log with the report id
This commit is contained in:
Latif Khalifa
2013-11-26 00:38:00 +01:00
parent 362415fe8a
commit 4e79bce3e2
4 changed files with 27 additions and 3 deletions

View File

@@ -63,11 +63,17 @@ public:
virtual void result(const LLSD& content)
{
std::string msg = "Crash report successfully sent";
if (content.has("message"))
{
msg += ": " + content["message"].asString();
}
llinfos << msg << llendl;
if (content.has("report_id"))
{
LLCrashLogger::sReportID = content["report_id"].asInteger();
}
}
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const
@@ -93,6 +99,8 @@ LLCrashLogger::~LLCrashLogger()
}
/*static*/ S32 LLCrashLogger::sReportID = 0;
// TRIM_SIZE must remain larger than LINE_SEARCH_SIZE.
const int TRIM_SIZE = 128000;
const int LINE_SEARCH_DIST = 500;