From ea56363f6d9ef8e6da70d143b02a18ae906ff2a8 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Wed, 23 Jul 2014 14:04:50 +0200 Subject: [PATCH] Adds logging to the RteEmbedController when there's an exception, instead of silently swallowing the error --- src/Umbraco.Web/PropertyEditors/RteEmbedController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web/PropertyEditors/RteEmbedController.cs b/src/Umbraco.Web/PropertyEditors/RteEmbedController.cs index 7181780b32..6e6417615d 100644 --- a/src/Umbraco.Web/PropertyEditors/RteEmbedController.cs +++ b/src/Umbraco.Web/PropertyEditors/RteEmbedController.cs @@ -5,7 +5,9 @@ using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Web.Http; using System.Xml; +using umbraco.BusinessLogic; using Umbraco.Core.Configuration; +using Umbraco.Core.Logging; using Umbraco.Web.Editors; using Umbraco.Web.Mvc; using Umbraco.Web.WebApi.Filters; @@ -65,8 +67,9 @@ namespace Umbraco.Web.PropertyEditors result.Markup = prov.GetMarkup(url, width, height); result.Status = Status.Success; } - catch + catch(Exception ex) { + LogHelper.Error(string.Format("Error embedding url {0} - width: {1} height: {2}", url, width, height), ex); result.Status = Status.Error; }