Remove LogWarning<T> from LoggerExtensions
This commit is contained in:
@@ -709,7 +709,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
|
||||
{
|
||||
if (ContentRepositoryBase.ThrowOnWarning)
|
||||
throw new InvalidOperationException($"The query returned multiple property sets for content {temp.Id}, {temp.ContentType.Name}");
|
||||
Logger.LogWarning<ContentRepositoryBase<TId, TEntity, TRepository>>("The query returned multiple property sets for content {ContentId}, {ContentTypeName}", temp.Id, temp.ContentType.Name);
|
||||
Logger.LogWarning("The query returned multiple property sets for content {ContentId}, {ContentTypeName}", temp.Id, temp.ContentType.Name);
|
||||
}
|
||||
|
||||
result[temp.VersionId] = new PropertyCollection(properties);
|
||||
|
||||
Reference in New Issue
Block a user