From b878f3362973a96fdebaed71b1e6bcfd98f56246 Mon Sep 17 00:00:00 2001 From: Oz Linden Date: Thu, 9 Mar 2017 13:06:49 -0500 Subject: correct fetching of VivoxDebugLevel and setting default, passing args to failure notice --- indra/newview/llvoicevivox.cpp | 16 ++++++++++++---- 1 file 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); } -- cgit v1.2.3