BUG-134134 Additional logging
parent
5826a2fd50
commit
d290f2c512
|
|
@ -4422,6 +4422,7 @@ bool LLAppViewer::initCache()
|
|||
if (gSavedSettings.getBOOL("PurgeCacheOnStartup") ||
|
||||
gSavedSettings.getBOOL("PurgeCacheOnNextStartup"))
|
||||
{
|
||||
LL_INFOS("AppCache") << "Startup cache purge requested: " << (gSavedSettings.getBOOL("PurgeCacheOnStartup") ? "ALWAYS" : "ONCE") << LL_ENDL;
|
||||
gSavedSettings.setBOOL("PurgeCacheOnNextStartup", false);
|
||||
mPurgeCache = true;
|
||||
// STORM-1141 force purgeAllTextures to get called to prevent a crash here. -brad
|
||||
|
|
@ -4436,6 +4437,7 @@ bool LLAppViewer::initCache()
|
|||
std::string new_cache_location = gSavedSettings.getString("NewCacheLocation");
|
||||
if (new_cache_location != cache_location)
|
||||
{
|
||||
LL_INFOS("AppCache") << "Cache location changed, cache needs purging" << LL_ENDL;
|
||||
gDirUtilp->setCacheDir(gSavedSettings.getString("CacheLocation"));
|
||||
purgeCache(); // purge old cache
|
||||
gSavedSettings.setString("CacheLocation", new_cache_location);
|
||||
|
|
|
|||
|
|
@ -1470,6 +1470,7 @@ void LLTextureCache::readHeaderCache()
|
|||
{
|
||||
if (!mReadOnly)
|
||||
{
|
||||
LL_INFOS() << "Texture Cache version mismatch, Purging." << LL_ENDL;
|
||||
purgeAllTextures(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue