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

pull/758/head
Jamie.Rees 8 years ago
parent b3d1fbda9b
commit 662588b709

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

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

Loading…
Cancel
Save