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:
@@ -892,7 +892,7 @@ namespace Umbraco.Core.Services.Implement
|
||||
scope.Events.Dispatch(Deleted, this, args);
|
||||
|
||||
_mediaFileSystem.DeleteFiles(args.MediaFilesToDelete, // remove flagged files
|
||||
(file, e) => Logger.Error<MediaService>("An error occurred while deleting file attached to nodes: {File}", e, file));
|
||||
(file, e) => Logger.Error<MediaService>(e, "An error occurred while deleting file attached to nodes: {File}", file));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user