diff options
author | Oz Linden <oz@lindenlab.com> | 2017-03-09 13:06:49 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2017-03-09 13:06:49 -0500 |
commit | b878f3362973a96fdebaed71b1e6bcfd98f56246 (patch) | |
tree | cd33ad8abc56801a399aeeac76552c73b292c9a8 /indra/newview/llvoicevivox.cpp | |
parent | 6de7de20c05a49c4f30eaca34e11c21af3568e69 (diff) |
correct fetching of VivoxDebugLevel and setting default, passing args to failure notice
Diffstat (limited to 'indra/newview/llvoicevivox.cpp')
-rw-r--r-- | indra/newview/llvoicevivox.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp index 76fd86d87b..82676495b2 100644 --- a/indra/newview/llvoicevivox.cpp +++ b/indra/newview/llvoicevivox.cpp @@ -490,8 +490,11 @@ void LLVivoxVoiceClient::connectorCreate() std::string logdir = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, ""); // Transition to stateConnectorStarted when the connector handle comes back. - std::string vivoxLogLevel = gSavedSettings.getString("VivoxDebugLevel", "0"); - + std::string vivoxLogLevel = gSavedSettings.getString("VivoxDebugLevel"); + if ( vivoxLogLevel.empty() ) + { + vivoxLogLevel = "0"; + } LL_DEBUGS("Voice") << "creating connector with log level " << vivoxLogLevel << LL_ENDL; stream @@ -734,8 +737,11 @@ bool LLVivoxVoiceClient::startAndLaunchDaemon() LLProcess::Params params; params.executable = exe_path; - std::string loglevel = gSavedSettings.getString("VivoxDebugLevel", "0"); - + std::string loglevel = gSavedSettings.getString("VivoxDebugLevel"); + if (loglevel.empty()) + { + loglevel = "0"; + } params.args.add("-ll"); params.args.add(loglevel); @@ -959,6 +965,8 @@ bool LLVivoxVoiceClient::establishVoiceConnection() } else if (!connected) { + LLSD args; + args["HOSTID"] = LLURI(mVoiceAccountServerURI).authority(); LLNotificationsUtil::add("NoVoiceConnectFinal", args); } |