summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2019-10-04 15:16:24 -0400
committerOz Linden <oz@lindenlab.com>2019-10-04 15:16:24 -0400
commitd89130c32ab73f87f57c5294be3e7fe1cb856258 (patch)
tree5968ad3f0a752e1dc591410dd439d8f5241d941b /indra
parent1cb5ec90233e631bd1133bf79631b9cf6d834311 (diff)
rename SLVoice log file and rotate the way we do for SecondLife.log
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llvoicevivox.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp
index e10ba77e16..739f7bd47c 100644
--- a/indra/newview/llvoicevivox.cpp
+++ b/indra/newview/llvoicevivox.cpp
@@ -824,6 +824,20 @@ bool LLVivoxVoiceClient::startAndLaunchDaemon()
params.args.add("-lf");
params.args.add(log_folder);
+ // set log file basename and .log
+ params.args.add("-lp");
+ params.args.add("SLVoice");
+ params.args.add("-ls");
+ 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(new_log))
+ {
+ LLFile::rename(new_log, old_log);
+ }
+
std::string shutdown_timeout = gSavedSettings.getString("VivoxShutdownTimeout");
if (!shutdown_timeout.empty())
{