From 6664373ac262a4e90e362c36cd5210fabfcd0137 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 5 Jul 2018 20:11:14 +0000 Subject: [PATCH] --- Controllers/SyncController.cs | 2 +- Program.cs | 8 +++++++- Startup.cs | 1 + appsettings.Development.json | 6 +++--- db/pecklist.sqlite | Bin 45056 -> 45056 bytes 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Controllers/SyncController.cs b/Controllers/SyncController.cs index acf9a4f..101070d 100644 --- a/Controllers/SyncController.cs +++ b/Controllers/SyncController.cs @@ -38,7 +38,7 @@ namespace GZTW.Pecklist.Controllers { //TODO: Might need a lock flag in db here just in case of duelling updates - + _logger.LogDebug("POST_SYNC"); //Get list from server ListData l = _ct.ListData.First(c=>c.Id == 1); diff --git a/Program.cs b/Program.cs index 5532412..a69400d 100644 --- a/Program.cs +++ b/Program.cs @@ -24,7 +24,13 @@ namespace GZTW.Pecklist .UseSetting("detailedErrors", "true") .UseKestrel() .UseContentRoot(System.IO.Directory.GetCurrentDirectory()) - //.UseIISIntegration() + //.UseIISIntegration() + // .ConfigureLogging((hostingContext, logging) => + // { + // logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging")); + // logging.AddConsole(); + // logging.AddDebug(); + // }) .UseStartup() .Build(); } diff --git a/Startup.cs b/Startup.cs index cba5ca9..f303064 100644 --- a/Startup.cs +++ b/Startup.cs @@ -89,6 +89,7 @@ namespace GZTW.Pecklist loggerFactory.AddConsole(Configuration.GetSection("Logging")); loggerFactory.AddDebug(); + app.UseForwardedHeaders(new ForwardedHeadersOptions { diff --git a/appsettings.Development.json b/appsettings.Development.json index d26d688..8a42341 100644 --- a/appsettings.Development.json +++ b/appsettings.Development.json @@ -2,9 +2,9 @@ "Logging": { "IncludeScopes": false, "LogLevel": { - "Default": "Warning", - "System": "Warning", - "Microsoft": "Warning" + "Default": "Trace", + "System": "Trace", + "Microsoft": "Trace" } } } diff --git a/db/pecklist.sqlite b/db/pecklist.sqlite index 057a863c346b4e57e2e05bc7d3c064e4d5e36544..1816eced41e3406ed1c6d8940a12ffa71d3cdbdf 100644 GIT binary patch delta 85 zcmZp8z|`=7X@WH4i_@%