Change calls to logger.Warn method to use Func<string> second part

This commit is contained in:
lkoruba
2018-06-29 15:35:56 +02:00
parent 8359ea5862
commit b515f24c16
12 changed files with 17 additions and 19 deletions

View File

@@ -108,7 +108,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
else
{
// this is a property that does not correspond to anything, ignore and log
Current.Logger.Warn<PublishedMediaCache>("Dropping property \"" + i.Key + "\" because it does not belong to the content type.");
Current.Logger.Warn<PublishedMediaCache>(() => "Dropping property \"" + i.Key + "\" because it does not belong to the content type.");
}
}
}