Dialing back the debug output

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045738
This commit is contained in:
loudej 2010-01-20 19:09:39 +00:00
parent 5285b24733
commit 90cd0451c8
2 changed files with 6 additions and 10 deletions

View File

@ -7,6 +7,12 @@
<add name="WebPageTrace"/>
</listeners>
</source>
<source name="Orchard.Localization" switchValue="Warning">
<listeners>
<add name="OrchardDebugTextLog" />
<add name="WebPageTrace"/>
</listeners>
</source>
</sources>
<sharedListeners>
<add name="OrchardDebugTextLog" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\logs\orchard-debug.txt" />

View File

@ -98,7 +98,6 @@ namespace Orchard.Mvc.ViewEngines {
var scope = Scope.From(controllerContext);
if (scope != null && scope.LayoutViewEngine != null) {
var result = scope.LayoutViewEngine._viewEngines.FindPartialView(controllerContext, partialViewName);
Monitor(result, partialViewName);
return result;
}
@ -110,7 +109,6 @@ namespace Orchard.Mvc.ViewEngines {
var scope = Scope.From(controllerContext);
if (scope != null && scope.LayoutViewEngine != null) {
var result = scope.LayoutViewEngine._viewEngines.FindView(controllerContext, viewName, masterName);
Monitor(result, viewName);
return result;
}
@ -118,14 +116,6 @@ namespace Orchard.Mvc.ViewEngines {
}
private static void Monitor(ViewEngineResult result, string viewName) {
if (result.View == null) {
Trace.WriteLine("Unable to find " + viewName);
// foreach (var search in result.SearchedLocations) {
// Trace.WriteLine(" location " + search);
// }
}
}
public void ReleaseView(ControllerContext controllerContext, IView view) {
throw new NotImplementedException();