SL-13834 - omit string-type controls from preference logs
parent
9cc0510b4e
commit
d556a8a974
|
|
@ -649,7 +649,7 @@ LLSD LLControlGroup::asLLSD(bool diffs_only)
|
|||
iter != mNameTable.end(); iter++)
|
||||
{
|
||||
LLControlVariable *control = iter->second;
|
||||
if (!control || (diffs_only && control->isDefault()))
|
||||
if (!control || control->isType(TYPE_STRING) || (diffs_only && control->isDefault()))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -622,7 +622,7 @@ void send_viewer_stats(bool include_preferences)
|
|||
// Preferences
|
||||
if (include_preferences)
|
||||
{
|
||||
bool diffs_only = true; // only log preferences that differ from default
|
||||
bool diffs_only = true; // only log preferences that differ from default?
|
||||
body["preferences"]["settings"] = gSavedSettings.asLLSD(diffs_only);
|
||||
body["preferences"]["settings_per_account"] = gSavedPerAccountSettings.asLLSD(diffs_only);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue