Refactored the error params, so that exception is before the message/template so its more in sync with Serilog signature & was an easy way to find some more logs I missed too
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>(string.Empty, new ImageProcessingException(message));
|
||||
Current.Logger.Error<T>(new ImageProcessingException(message), string.Empty);
|
||||
}
|
||||
|
||||
/// <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, string.Empty, new ImageProcessingException(message));
|
||||
Current.Logger.Error(type, new ImageProcessingException(message), string.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user