Added CrashReportID debug setting that will be set to the ID of the last crash that was sent to the crash tracker

This commit is contained in:
Latif Khalifa
2013-11-29 16:22:06 +01:00
parent d8fa14cac5
commit e41b346046
2 changed files with 17 additions and 0 deletions

View File

@@ -17791,6 +17791,17 @@ This should be as low as possible, but too low may break functionality</string>
<key>Value</key>
<integer>0</integer>
</map>
<key>CrashReportID</key>
<map>
<key>Comment</key>
<string>ID of the last crash report sent. Zero indicates that no crash report has been sent. Non-zero value can be useful infermation for developers to track a specific issue</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>S32</string>
<key>Value</key>
<integer>0</integer>
</map>
</map>
</llsd>

View File

@@ -68,6 +68,12 @@ public:
msg += ": " + content["message"].asString();
}
llinfos << msg << llendl;
if (content.has("report_id"))
{
gSavedSettings.setS32("CrashReportID", content["report_id"].asInteger());
}
}
virtual AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const