summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-03-25 22:59:08 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2024-03-25 23:29:21 +0200
commiteeb43b604ccb3348907bd06c0135e7824879fe57 (patch)
tree95a4bec4cf0b6e283de94a17de608c41afb491a6 /indra/newview
parent18c4d8732aae9a8bf10d6a84bc37261b242d16c6 (diff)
viewer-private#217 Rotate cef log file
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewermedia.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp
index 02108e861a..59701cc5b3 100644
--- a/indra/newview/llviewermedia.cpp
+++ b/indra/newview/llviewermedia.cpp
@@ -1723,7 +1723,13 @@ LLPluginClassMedia* LLViewerMediaImpl::newSourceFromMediaType(std::string media_
std::string user_data_path_cache = gDirUtilp->getCacheDir(false);
user_data_path_cache += gDirUtilp->getDirDelimiter();
- std::string user_data_path_cef_log = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "cef_log.txt");
+ std::string user_data_path_cef_log = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "cef.txt");
+ std::string user_data_path_cef_old = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "cef.old");
+ if (gDirUtilp->fileExists(user_data_path_cef_log))
+ {
+ LLFile::remove(user_data_path_cef_old, ENOENT);
+ LLFile::rename(user_data_path_cef_log, user_data_path_cef_old);
+ }
// See if the plugin executable exists
llstat s;