Remove LogWarning<T> from LoggerExtensions

This commit is contained in:
Nikolaj
2020-09-16 09:58:07 +02:00
parent dda6fb12a3
commit 488093add3
56 changed files with 105 additions and 155 deletions

View File

@@ -414,7 +414,7 @@ namespace Umbraco.Core.Models
public virtual string ContentTypeAlias => ContentType.Alias;
/// <summary>
/// Internal/Experimental - only used for mapping queries.
/// Internal/Experimental - only used for mapping queries.
/// </summary>
/// <remarks>
/// Adding these to have first level properties instead of the Properties collection.
@@ -423,7 +423,7 @@ namespace Umbraco.Core.Models
[EditorBrowsable(EditorBrowsableState.Never)]
public string LongStringPropertyValue { get; set; }
/// <summary>
/// Internal/Experimental - only used for mapping queries.
/// Internal/Experimental - only used for mapping queries.
/// </summary>
/// <remarks>
/// Adding these to have first level properties instead of the Properties collection.
@@ -432,7 +432,7 @@ namespace Umbraco.Core.Models
[EditorBrowsable(EditorBrowsableState.Never)]
public string ShortStringPropertyValue { get; set; }
/// <summary>
/// Internal/Experimental - only used for mapping queries.
/// Internal/Experimental - only used for mapping queries.
/// </summary>
/// <remarks>
/// Adding these to have first level properties instead of the Properties collection.
@@ -441,7 +441,7 @@ namespace Umbraco.Core.Models
[EditorBrowsable(EditorBrowsableState.Never)]
public int IntegerPropertyValue { get; set; }
/// <summary>
/// Internal/Experimental - only used for mapping queries.
/// Internal/Experimental - only used for mapping queries.
/// </summary>
/// <remarks>
/// Adding these to have first level properties instead of the Properties collection.
@@ -450,7 +450,7 @@ namespace Umbraco.Core.Models
[EditorBrowsable(EditorBrowsableState.Never)]
public bool BoolPropertyValue { get; set; }
/// <summary>
/// Internal/Experimental - only used for mapping queries.
/// Internal/Experimental - only used for mapping queries.
/// </summary>
/// <remarks>
/// Adding these to have first level properties instead of the Properties collection.
@@ -459,7 +459,7 @@ namespace Umbraco.Core.Models
[EditorBrowsable(EditorBrowsableState.Never)]
public DateTime DateTimePropertyValue { get; set; }
/// <summary>
/// Internal/Experimental - only used for mapping queries.
/// Internal/Experimental - only used for mapping queries.
/// </summary>
/// <remarks>
/// Adding these to have first level properties instead of the Properties collection.
@@ -472,7 +472,7 @@ namespace Umbraco.Core.Models
{
void DoLog(string logPropertyAlias, string logPropertyName)
{
Current.Logger.LogWarning<Member>("Trying to access the '{PropertyName}' property on '{MemberType}' " +
Current.Logger.LogWarning("Trying to access the '{PropertyName}' property on '{MemberType}' " +
"but the {PropertyAlias} property does not exist on the member type so a default value is returned. " +
"Ensure that you have a property type with alias: {PropertyAlias} configured on your member type in order to use the '{PropertyName}' property on the model correctly.",
logPropertyName,
@@ -497,7 +497,7 @@ namespace Umbraco.Core.Models
{
void DoLog(string logPropertyAlias, string logPropertyName)
{
Current.Logger.LogWarning<Member>("An attempt was made to set a value on the property '{PropertyName}' on type '{MemberType}' but the " +
Current.Logger.LogWarning("An attempt was made to set a value on the property '{PropertyName}' on type '{MemberType}' but the " +
"property type {PropertyAlias} does not exist on the member type, ensure that this property type exists so that setting this property works correctly.",
logPropertyName,
typeof(Member),
@@ -524,6 +524,6 @@ namespace Umbraco.Core.Models
/// <inheritdoc />
[IgnoreDataMember]
public bool HasAdditionalData => _additionalData != null;
public bool HasAdditionalData => _additionalData != null;
}
}