updated some logging on content class.

This commit is contained in:
Shannon Deminick
2012-11-18 03:31:02 +05:00
parent 93e2d8d822
commit cde1ca9f83

View File

@@ -7,6 +7,7 @@ using System.Threading;
using System.Web;
using System.Xml;
using System.Xml.XPath;
using Umbraco.Core.Logging;
using umbraco.BusinessLogic;
using umbraco.BusinessLogic.Actions;
using umbraco.BusinessLogic.Utils;
@@ -211,10 +212,14 @@ namespace umbraco
{
if (isInitializing)
{
Trace.WriteLine(string.Format("Initializing content on thread '{0}' (Threadpool? {1})",
Thread.CurrentThread.Name, Thread.CurrentThread.IsThreadPoolThread));
LogHelper.Debug<content>("Initializing content on thread '{0}' (Threadpool? {1})",
HttpContext.Current == null ? null : HttpContext.Current.Trace,
() => Thread.CurrentThread.Name,
() => Thread.CurrentThread.IsThreadPoolThread);
_xmlContent = LoadContent();
Trace.WriteLine("Content initialized (loaded)");
LogHelper.Debug<content>("Content initialized (loaded)",
HttpContext.Current == null ? null : HttpContext.Current.Trace);
FireAfterRefreshContent(new RefreshContentEventArgs());