mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-15 18:55:14 +08:00
Dialing back the debug output
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4045738
This commit is contained in:
parent
5285b24733
commit
90cd0451c8
@ -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" />
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user