diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp index 96da3ae3616f072603f11cd62b1899685469c943..f4455742903caedf3bb9f26d6f23c430c3602c98 100644 --- a/indra/newview/llvoicevivox.cpp +++ b/indra/newview/llvoicevivox.cpp @@ -880,8 +880,13 @@ bool LLVivoxVoiceClient::startAndLaunchDaemon() params.args.add(".log"); // rotate any existing log - std::string new_log = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "SLVoice.log"); + std::string old_log = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "SLVoice.old"); + if (gDirUtilp->fileExists(old_log)) + { + LLFile::remove(old_log); + } + std::string new_log = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "SLVoice.log"); if (gDirUtilp->fileExists(new_log)) { LLFile::rename(new_log, old_log);