Skip to content
Snippets Groups Projects
Commit d06739fa authored by Monty Brandenberg's avatar Monty Brandenberg
Browse files

SH-3328 llcorehttp tracing control needed defensive logic for missing setting

Guard for the typical case of a missing setting with a bracketing
gSavedSettings.controlExists() call.
parent 9de14fe4
No related branches found
No related tags found
No related merge requests found
...@@ -85,10 +85,14 @@ void LLAppCoreHttp::init() ...@@ -85,10 +85,14 @@ void LLAppCoreHttp::init()
// 1 - Basic start, stop simple transitions // 1 - Basic start, stop simple transitions
// 2 - libcurl CURLOPT_VERBOSE mode with brief lines // 2 - libcurl CURLOPT_VERBOSE mode with brief lines
// 3 - with partial data content // 3 - with partial data content
long trace_level(0L); static const std::string http_trace("QAModeHttpTrace");
trace_level = long(gSavedSettings.getU32("QAModeHttpTrace")); if (gSavedSettings.controlExists(http_trace))
status = LLCore::HttpRequest::setPolicyGlobalOption(LLCore::HttpRequest::GP_TRACE, trace_level); {
long trace_level(0L);
trace_level = long(gSavedSettings.getU32(http_trace));
status = LLCore::HttpRequest::setPolicyGlobalOption(LLCore::HttpRequest::GP_TRACE, trace_level);
}
// Setup default policy and constrain if directed to // Setup default policy and constrain if directed to
mPolicyDefault = LLCore::HttpRequest::DEFAULT_POLICY_ID; mPolicyDefault = LLCore::HttpRequest::DEFAULT_POLICY_ID;
static const std::string texture_concur("TextureFetchConcurrency"); static const std::string texture_concur("TextureFetchConcurrency");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment