This commit is contained in:
2018-07-05 20:11:14 +00:00
parent 89890d60de
commit 6664373ac2
5 changed files with 12 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ namespace GZTW.Pecklist.Controllers
{ {
//TODO: Might need a lock flag in db here just in case of duelling updates //TODO: Might need a lock flag in db here just in case of duelling updates
_logger.LogDebug("POST_SYNC");
//Get list from server //Get list from server
ListData l = _ct.ListData.First(c=>c.Id == 1); ListData l = _ct.ListData.First(c=>c.Id == 1);

View File

@@ -24,7 +24,13 @@ namespace GZTW.Pecklist
.UseSetting("detailedErrors", "true") .UseSetting("detailedErrors", "true")
.UseKestrel() .UseKestrel()
.UseContentRoot(System.IO.Directory.GetCurrentDirectory()) .UseContentRoot(System.IO.Directory.GetCurrentDirectory())
//.UseIISIntegration() //.UseIISIntegration()
// .ConfigureLogging((hostingContext, logging) =>
// {
// logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
// logging.AddConsole();
// logging.AddDebug();
// })
.UseStartup<Startup>() .UseStartup<Startup>()
.Build(); .Build();
} }

View File

@@ -89,6 +89,7 @@ namespace GZTW.Pecklist
loggerFactory.AddConsole(Configuration.GetSection("Logging")); loggerFactory.AddConsole(Configuration.GetSection("Logging"));
loggerFactory.AddDebug(); loggerFactory.AddDebug();
app.UseForwardedHeaders(new ForwardedHeadersOptions app.UseForwardedHeaders(new ForwardedHeadersOptions
{ {

View File

@@ -2,9 +2,9 @@
"Logging": { "Logging": {
"IncludeScopes": false, "IncludeScopes": false,
"LogLevel": { "LogLevel": {
"Default": "Warning", "Default": "Trace",
"System": "Warning", "System": "Trace",
"Microsoft": "Warning" "Microsoft": "Trace"
} }
} }
} }

Binary file not shown.