More logging #865

This commit is contained in:
Jamie.Rees 2017-09-21 10:51:31 +01:00
parent a4637a139b
commit c263462fea
2 changed files with 8 additions and 6 deletions

View file

@ -55,6 +55,7 @@ namespace Ombi.Schedule.Jobs.Ombi
c.WriteLine("Looking for updates now"); c.WriteLine("Looking for updates now");
var updates = await OmbiService.GetUpdates(branch); var updates = await OmbiService.GetUpdates(branch);
c.WriteLine("Updates: {0}", updates);
var serverVersion = updates.UpdateVersionString; var serverVersion = updates.UpdateVersionString;
Logger.LogInformation(LoggingEvents.Updater, "Service Version {0}", updates.UpdateVersionString); Logger.LogInformation(LoggingEvents.Updater, "Service Version {0}", updates.UpdateVersionString);
@ -108,6 +109,7 @@ namespace Ombi.Schedule.Jobs.Ombi
} }
if (download == null) if (download == null)
{ {
c.WriteLine("There were no downloads");
return; return;
} }

View file

@ -221,12 +221,6 @@ namespace Ombi
Authorization = new [] { new HangfireAuthorizationFilter() } Authorization = new [] { new HangfireAuthorizationFilter() }
}); });
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
c.ShowJsonEditor();
});
// Setup the scheduler // Setup the scheduler
@ -255,6 +249,12 @@ namespace Ombi
name: "spa-fallback", name: "spa-fallback",
defaults: new { controller = "Home", action = "Index" }); defaults: new { controller = "Home", action = "Index" });
}); });
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
c.ShowJsonEditor();
});
} }
private static void ApiKeyMiddlewear(IApplicationBuilder app, IServiceProvider serviceProvider) private static void ApiKeyMiddlewear(IApplicationBuilder app, IServiceProvider serviceProvider)