From cde1ca9f83369e75fd4e60cf4eadece901e6e6f0 Mon Sep 17 00:00:00 2001 From: Shannon Deminick Date: Sun, 18 Nov 2012 03:31:02 +0500 Subject: [PATCH] updated some logging on content class. --- src/Umbraco.Web/umbraco.presentation/content.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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());