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:
@@ -633,7 +633,7 @@ namespace Umbraco.Core.Services.Implement
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error<NotificationService>("An error occurred sending notification", ex);
|
||||
_logger.Error<NotificationService>(ex, "An error occurred sending notification");
|
||||
s.Dispose();
|
||||
s = new SmtpClient();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user