Browse Source

Display stack trace through Nancy for debugging

Brittany Mazza 10 years ago
parent
commit
12d61fc76c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      frameworks/CSharp/nancy/src/Global.asax.cs

+ 2 - 0
frameworks/CSharp/nancy/src/Global.asax.cs

@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using System.Web;
 using Nancy;
+using Nancy.ErrorHandling;
 using System.Threading;
 
 namespace NancyBenchmark
@@ -10,6 +11,7 @@ namespace NancyBenchmark
     {
         protected void Application_Start()
         {
+            StaticConfiguration.DisableErrorTraces = false;
             var threads = 40 * Environment.ProcessorCount;
             ThreadPool.SetMaxThreads(threads, threads);
             ThreadPool.SetMinThreads(threads, threads);