Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Ombi/commit/b573bc30f551e7e3205324bd7e91b1e76a469095 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Catch real errors !wip

pull/2420/head
Jamie Rees 7 years ago
parent 46ab1ad923
commit b573bc30f5

@ -31,7 +31,8 @@ namespace Ombi
private static Task HandleExceptionAsync(HttpContext context, Exception exception)
{
var logger = context.RequestServices.GetService<ILogger>();
var loggerFact = context.RequestServices.GetService<ILoggerFactory>();
var logger = loggerFact.CreateLogger<ErrorHandlingMiddleware>();
logger.LogError(exception, "Something bad happened, ErrorMiddleware caught this");
var code = HttpStatusCode.InternalServerError; // 500 if unexpected

Loading…
Cancel
Save