diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index e8fd8f228a..6c25ba1a4b 100755 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -787,9 +787,6 @@ LLAppViewer::~LLAppViewer() destroyMainloopTimeout(); - // Delete useless Vivox logs on logout - gDirUtilp->deleteFilesInDir(gDirUtilp->getExpandedFilename(LL_PATH_EXECUTABLE, ""), "VivoxVoiceService-*.log"); - // If we got to this destructor somehow, the app didn't hang. removeMarkerFile(); } diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp index 8dd3f7ebb5..aeb694bc41 100755 --- a/indra/newview/llvoicevivox.cpp +++ b/indra/newview/llvoicevivox.cpp @@ -376,6 +376,13 @@ void LLVivoxVoiceClient::terminate() { killGateway(); } + + // Delete useless Vivox logs on logout + if (gSavedSettings.getString("VivoxDebugLevel") == "0") + { + gDirUtilp->deleteFilesInDir(gDirUtilp->getExpandedFilename(LL_PATH_EXECUTABLE, ""), "VivoxVoiceService-*.log"); + } + // } //--------------------------------------------------- @@ -467,11 +474,17 @@ void LLVivoxVoiceClient::connectorCreate() setState(stateConnectorStarting); std::string savedLogLevel = gSavedSettings.getString("VivoxDebugLevel"); - - if(savedLogLevel != "-0") + + // Fixing Vivox debug level + //if(savedLogLevel != "-0") + if(savedLogLevel != "0") + // { LL_DEBUGS("Voice") << "creating connector with logging enabled" << LL_ENDL; + // Fixing Vivox debug level loglevel = "0"; + loglevel = "10"; + // } stream