Skip to content

Commit

Permalink
viewer-private#217 Rotate cef log file
Browse files Browse the repository at this point in the history
  • Loading branch information
akleshchev committed Mar 25, 2024
1 parent 18c4d87 commit eeb43b6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion indra/newview/llviewermedia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eeb43b6

Please sign in to comment.