summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorBill Curtis <bill.curtis@gmail.com>2010-11-18 10:37:45 -0800
committerBill Curtis <bill.curtis@gmail.com>2010-11-18 10:37:45 -0800
commitc5e5af4219b650db50ec72ee6a7174aad9439671 (patch)
tree447c98b002e6421c42f3e89c4eaac1f710fe1215 /indra/newview
parent31e0c9122ecaa8aed1c5449acc3cb773441d6858 (diff)
added logging and default value for max-agent-groups
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llstartup.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp
index ac320ba761..711240293e 100644
--- a/indra/newview/llstartup.cpp
+++ b/indra/newview/llstartup.cpp
@@ -3149,9 +3149,18 @@ bool process_login_success_response()
LLViewerMedia::openIDSetup(openid_url, openid_token);
}
- std::string max_agent_groups(response["max-agent-groups"]);
- gMaxAgentGroups = atoi(max_agent_groups.c_str());
-
+ if(response.has("max-agent-grid")) {
+ std::string max_agent_groups(response["max-agent-groups"]);
+ gMaxAgentGroups = atoi(max_agent_groups.c_str());
+ LL_INFOS("LLStartup") << "gMaxAgentGroups read from login.cgi: "
+ << gMaxAgentGroups << LL_ENDL;
+ }
+ else {
+ gMaxAgentGroups = DEFAULT_MAX_AGENT_GROUPS;
+ LL_INFOS("LLStartup") << "using gMaxAgentGroups default: "
+ << gMaxAgentGroups << LL_ENDL;
+ }
+
bool success = false;
// JC: gesture loading done below, when we have an asset system
// in place. Don't delete/clear gUserCredentials until then.