Skip to content
Permalink
Browse files

Fix HTTP logging on release versions

  • Loading branch information...
Cazzar committed Apr 30, 2019
1 parent 4afb62e commit 503a1e670d24aea7f20f3e7821ce1d6d733ea804
Showing with 5 additions and 2 deletions.
  1. +5 −2 Shoko.Server/ShokoServer.cs
@@ -1496,13 +1496,16 @@ private static void StartWebHost()
if (webHost != null)
return;
webHost = new WebHostBuilder().UseKestrel(options => { options.ListenAnyIP(ServerSettings.Instance.ServerPort); }).UseStartup<Startup>()
#if DEBUG
.ConfigureLogging(logging =>
{
logging.ClearProviders();
#if DEBUG
logging.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Trace);
}).UseNLog()
#else
logging.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Information);
#endif
}).UseNLog()

.Build();

//JsonSettings.MaxJsonLength = int.MaxValue;

0 comments on commit 503a1e6

Please sign in to comment.
You can’t perform that action at this time.