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:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user