updated some logging on content class.
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user