Updated a ton of Error logging calls to use the new LogHelper but there are still plenty more to go; #u4-7

This commit is contained in:
Shannon Deminick
2012-12-10 05:03:28 +05:00
parent 1e19c4b65b
commit 56b70ad229
26 changed files with 288 additions and 267 deletions

View File

@@ -6,6 +6,7 @@ using System.Drawing.Imaging;
using System.Text.RegularExpressions;
using System.Web;
using Umbraco.Core.IO;
using Umbraco.Core.Logging;
using umbraco.BusinessLogic;
using umbraco.cms.businesslogic.Files;
using umbraco.IO;
@@ -66,8 +67,7 @@ namespace umbraco.editorControls.tinymce
cleanTag += " width=\"" + helper.FindAttribute(ht, "width") + "\"";
cleanTag += " height=\"" + helper.FindAttribute(ht, "height") + "\"";
}
Log.Add(LogTypes.Error, User.GetUser(0), -1,
"Error resizing image in editor: " + err.ToString());
LogHelper.Error<tinyMCEImageHelper>("Error resizing image in editor", err);
}
}
else