From eeaf9e43090ec890a90af740dc36976176c2e412 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Wed, 3 Mar 2021 01:07:49 +0100 Subject: [PATCH] Silence pesky log spam --- indra/llfilesystem/llfilesystem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/llfilesystem/llfilesystem.cpp b/indra/llfilesystem/llfilesystem.cpp index 64e0b9f193..c8d6eef214 100644 --- a/indra/llfilesystem/llfilesystem.cpp +++ b/indra/llfilesystem/llfilesystem.cpp @@ -98,7 +98,8 @@ bool LLFileSystem::renameFile(const LLUUID& old_file_id, const LLAssetType::ETyp const std::string new_filename = LLDiskCache::getInstance()->metaDataToFilepath(new_id_str, new_file_type, extra_info); // Rename needs the new file to not exist. - LLFileSystem::removeFile(new_file_id, new_file_type); + if (LLFileSystem::getExists(new_file_id, new_file_type)) // Squelch log spam + LLFileSystem::removeFile(new_file_id, new_file_type); if (LLFile::rename(old_filename, new_filename) != 0) {