Change Warn to LogWarning
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.Warn<ContentRepositoryBase<TId, TEntity, TRepository>>("The query returned multiple property sets for content {ContentId}, {ContentTypeName}", 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);
|
||||
}
|
||||
|
||||
result[temp.VersionId] = new PropertyCollection(properties);
|
||||
|
||||
@@ -1261,7 +1261,7 @@ AND umbracoNode.id <> @id",
|
||||
}
|
||||
else
|
||||
{
|
||||
Logger.Warn<ContentTypeRepositoryBase<TEntity>>("Could not assign a data type for the property type {PropertyTypeAlias} since no data type was found with a property editor {PropertyEditorAlias}", propertyType.Alias, propertyType.PropertyEditorAlias);
|
||||
Logger.LogWarning<ContentTypeRepositoryBase<TEntity>>("Could not assign a data type for the property type {PropertyTypeAlias} since no data type was found with a property editor {PropertyEditorAlias}", propertyType.Alias, propertyType.PropertyEditorAlias);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -317,7 +317,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
|
||||
if (language != null) return language;
|
||||
|
||||
// this is an anomaly, the service/repo should ensure it cannot happen
|
||||
Logger.Warn<LanguageRepository>("There is no default language. Fix this anomaly by editing the language table in database and setting one language as the default language.");
|
||||
Logger.LogWarning<LanguageRepository>("There is no default language. Fix this anomaly by editing the language table in database and setting one language as the default language.");
|
||||
|
||||
// still, don't kill the site, and return "something"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user