Remove exception logging and finish LogWarning

This commit is contained in:
Nikolaj
2020-09-14 14:10:19 +02:00
parent db4652c0be
commit 161061dbbc
31 changed files with 84 additions and 261 deletions

View File

@@ -28,7 +28,7 @@ namespace Umbraco.Web
{
// Using LogHelper since the ImageProcessor logger expects a parameterless constructor.
var message = $"{callerName} {lineNumber} : {text}";
Current.Logger.LogError<T>(new ImageProcessingException(message));
Current.Logger.LogError<T>(new ImageProcessingException(message).Message);
}
/// <summary>
@@ -42,7 +42,7 @@ namespace Umbraco.Web
{
// Using LogHelper since the ImageProcessor logger expects a parameterless constructor.
var message = $"{callerName} {lineNumber} : {text}";
Current.Logger.LogError(type, new ImageProcessingException(message));
Current.Logger.LogError(new ImageProcessingException(message).Message);
}
}
}