diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-03-25 22:59:08 +0200 | 
|---|---|---|
| committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2025-03-11 01:30:59 +0200 | 
| commit | 9ed1e920168cc18caa63476416ccab4e8dcc0a9d (patch) | |
| tree | 393fd7eb2c2f413d45ad4206581f164090892df3 /indra | |
| parent | 83ded06e0c0b48478020c57bbf228520bf51cab6 (diff) | |
viewer-private#217 Rotate cef log file
# Conflicts:
#	indra/newview/llviewermedia.cpp
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llviewermedia.cpp | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp index d688d5930c..92938071a5 100644 --- a/indra/newview/llviewermedia.cpp +++ b/indra/newview/llviewermedia.cpp @@ -1730,7 +1730,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; | 
