Update ImageProcessorLogger - to use the new Error logger method that contains only an ex - and under the hood it will pass on an empty string to the message

This commit is contained in:
Warren
2018-08-23 12:26:33 +01:00
parent 219e8c730d
commit afebd88d45

View File

@@ -27,7 +27,7 @@ namespace Umbraco.Core.Logging
{
// Using LogHelper since the ImageProcessor logger expects a parameterless constructor.
var message = $"{callerName} {lineNumber} : {text}";
Current.Logger.Error<T>(new ImageProcessingException(message), string.Empty);
Current.Logger.Error<T>(new ImageProcessingException(message));
}
/// <summary>
@@ -41,7 +41,7 @@ namespace Umbraco.Core.Logging
{
// Using LogHelper since the ImageProcessor logger expects a parameterless constructor.
var message = $"{callerName} {lineNumber} : {text}";
Current.Logger.Error(type, new ImageProcessingException(message), string.Empty);
Current.Logger.Error(type, new ImageProcessingException(message));
}
}
}