Removed the trace option from the UI, it is only accessible when appending the url with "?developer" #753

This commit is contained in:
Jamie.Rees 2016-12-09 13:41:05 +00:00
parent b3d1fbda9b
commit 662588b709
2 changed files with 8 additions and 2 deletions

View file

@ -742,7 +742,10 @@ namespace PlexRequests.UI.Modules
private Negotiator Logs() private Negotiator Logs()
{ {
return View["Logs"]; var model = false;
if (Request.Query["developer"] != null)
model = true;
return View["Logs", model];
} }
private Response LoadLogs() private Response LoadLogs()

View file

@ -21,7 +21,10 @@
<label for="logLevel" class="control-label">Log Level</label> <label for="logLevel" class="control-label">Log Level</label>
<div id="logLevel"> <div id="logLevel">
<select class="form-control" id="selected"> <select class="form-control" id="selected">
@if (Model)
{
<option id="Trace" value="0">Trace</option> <option id="Trace" value="0">Trace</option>
}
<option id="Debug" value="1">Debug</option> <option id="Debug" value="1">Debug</option>
<option id="Info" value="2">Info</option> <option id="Info" value="2">Info</option>
<option id="Warn" value="3">Warn</option> <option id="Warn" value="3">Warn</option>