mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
Revert "revert logging config causing bug"
This reverts commit 9f927daf45.
This commit is contained in:
parent
fc2bc87d46
commit
254b273c70
1 changed files with 3 additions and 3 deletions
|
|
@ -19,6 +19,9 @@ public Startup(IHostingEnvironment env)
|
|||
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", true)
|
||||
.AddEnvironmentVariables();
|
||||
Configuration = builder.Build();
|
||||
|
||||
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
|
||||
loggerFactory.AddDebug();
|
||||
}
|
||||
|
||||
public IConfigurationRoot Configuration { get; }
|
||||
|
|
@ -35,9 +38,6 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
|
|||
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
|
||||
loggerFactory.AddDebug();
|
||||
app.UseMvc();
|
||||
//TODO: maybe move to Startup() per Scott Allen
|
||||
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
|
||||
loggerFactory.AddDebug();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue