diff --git a/src/Umbraco.Web/umbraco.presentation/content.cs b/src/Umbraco.Web/umbraco.presentation/content.cs index 32c82bb23c..fc16100284 100644 --- a/src/Umbraco.Web/umbraco.presentation/content.cs +++ b/src/Umbraco.Web/umbraco.presentation/content.cs @@ -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("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 initialized (loaded)", + HttpContext.Current == null ? null : HttpContext.Current.Trace); FireAfterRefreshContent(new RefreshContentEventArgs());