diff options
author | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-10-29 20:05:18 +0200 |
---|---|---|
committer | AndreyL ProductEngine <alihatskiy@productengine.com> | 2019-10-29 20:05:18 +0200 |
commit | 2d69438ee37a2224698418c2d00b19015b70b2b5 (patch) | |
tree | 33dc5a46db102f3fcef0759e161f60b59883b538 /indra/newview/llvoicevivox.cpp | |
parent | 63a3d9b4d99d244481dbd33c184d3ff8039ca7ad (diff) | |
parent | 7102d79c281157bdb80472f009e2606104e70922 (diff) |
Downstream merge from lindenlab/viewer-serval
Diffstat (limited to 'indra/newview/llvoicevivox.cpp')
-rw-r--r-- | indra/newview/llvoicevivox.cpp | 14 |
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()) { |