mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 08:16:05 -07:00
More logging #865
This commit is contained in:
parent
a4637a139b
commit
c263462fea
2 changed files with 8 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue