SL-13834 - omit string-type controls from preference logs

master
Brad Payne (Vir Linden) 2020-08-31 20:51:40 +01:00
parent 9cc0510b4e
commit d556a8a974
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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);
}