Avoid mixing using of string interpolation and string formatting. MessageFormat parameter is cached and should be a constant string.

This commit is contained in:
Chad Currie
2021-08-15 18:51:26 +12:00
parent 3c6efa6cb5
commit 9457d73499
3 changed files with 8 additions and 8 deletions

View File

@@ -456,7 +456,7 @@ namespace Umbraco.Cms.Infrastructure.PublishedCache
// Update: We will still return false here even though the above mentioned race condition has been fixed since we now
// lock the entire operation of creating/populating the cache file with the same lock as releasing/closing the cache file
_logger.LogInformation($"Tried to load {entityType} from the local cache file but it was empty.");
_logger.LogInformation("Tried to load {entityType} from the local cache file but it was empty.", entityType);
return false;
}