Fix PlexPy log level filter

This commit is contained in:
JonnyWong16 2016-09-24 19:29:26 -07:00
parent 492d28ea37
commit 1cd0c112a6
3 changed files with 6 additions and 2 deletions

View file

@ -3055,3 +3055,7 @@ a:hover .overlay-refresh-image:hover {
padding-top: 10px;
padding-bottom: 10px;
}
#plexpy-log-levels label,
#plex-log-levels label {
margin-bottom: 0;
}

View file

@ -28,7 +28,7 @@
<option disabled>&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;</option>
<option value="DEBUG">Debug</option>
<option value="INFO">Info</option>
<option value="WARN">Warning</option>
<option value="WARNING">Warning</option>
<option value="ERROR">Error</option>
</select>
</label>

View file

@ -2263,7 +2263,7 @@ class WebInterface(object):
filt[tl][2] += '<br>' + l
continue
log_levels = ['DEBUG', 'INFO', 'WARN', 'ERROR']
log_levels = ['DEBUG', 'INFO', 'WARNING', 'ERROR']
if log_level in log_levels:
log_levels = log_levels[log_levels.index(log_level)::]
filtered = [row for row in filt if row[1] in log_levels]