mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-07 21:51:13 -07:00
more logging to figure out why the we cannot access the admin module in a release build.
This commit is contained in:
parent
3dcf55ce7a
commit
55a5ad57ba
3 changed files with 11 additions and 5 deletions
|
@ -33,9 +33,12 @@ using Nancy.ModelBinding;
|
||||||
using Nancy.Responses.Negotiation;
|
using Nancy.Responses.Negotiation;
|
||||||
using Nancy.Security;
|
using Nancy.Security;
|
||||||
|
|
||||||
|
using NLog;
|
||||||
|
|
||||||
using PlexRequests.Api;
|
using PlexRequests.Api;
|
||||||
using PlexRequests.Core;
|
using PlexRequests.Core;
|
||||||
using PlexRequests.Core.SettingModels;
|
using PlexRequests.Core.SettingModels;
|
||||||
|
using PlexRequests.Helpers;
|
||||||
using PlexRequests.UI.Models;
|
using PlexRequests.UI.Models;
|
||||||
|
|
||||||
namespace PlexRequests.UI.Modules
|
namespace PlexRequests.UI.Modules
|
||||||
|
@ -45,6 +48,8 @@ namespace PlexRequests.UI.Modules
|
||||||
private ISettingsService<PlexRequestSettings> RpService { get; set; }
|
private ISettingsService<PlexRequestSettings> RpService { get; set; }
|
||||||
private ISettingsService<CouchPotatoSettings> CpService { get; set; }
|
private ISettingsService<CouchPotatoSettings> CpService { get; set; }
|
||||||
private ISettingsService<AuthenticationSettings> AuthService { get; set; }
|
private ISettingsService<AuthenticationSettings> AuthService { get; set; }
|
||||||
|
|
||||||
|
private static Logger Log = LogManager.GetCurrentClassLogger();
|
||||||
public AdminModule(ISettingsService<PlexRequestSettings> rpService, ISettingsService<CouchPotatoSettings> cpService, ISettingsService<AuthenticationSettings> auth) : base("admin")
|
public AdminModule(ISettingsService<PlexRequestSettings> rpService, ISettingsService<CouchPotatoSettings> cpService, ISettingsService<AuthenticationSettings> auth) : base("admin")
|
||||||
{
|
{
|
||||||
RpService = rpService;
|
RpService = rpService;
|
||||||
|
@ -89,11 +94,11 @@ namespace PlexRequests.UI.Modules
|
||||||
|
|
||||||
private Negotiator Admin()
|
private Negotiator Admin()
|
||||||
{
|
{
|
||||||
dynamic model = new ExpandoObject();
|
|
||||||
var settings = RpService.GetSettings();
|
var settings = RpService.GetSettings();
|
||||||
|
Log.Trace("Getting Settings:");
|
||||||
model = settings;
|
Log.Trace(settings.DumpJson());
|
||||||
return View["/Settings", model];
|
|
||||||
|
return View["/Settings", settings];
|
||||||
}
|
}
|
||||||
|
|
||||||
private Response SaveAdmin()
|
private Response SaveAdmin()
|
||||||
|
|
|
@ -45,5 +45,7 @@ namespace PlexRequests.UI
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
@Html.Partial("/Admin/_Sidebar")
|
@Html.Partial("/Admin/_Sidebar")
|
||||||
@{
|
@{
|
||||||
int port;
|
int port;
|
||||||
var authToken = string.Empty;
|
|
||||||
if (Model.Port == 0)
|
if (Model.Port == 0)
|
||||||
{
|
{
|
||||||
port = 3579;
|
port = 3579;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue