Fix PlexPy log level filter
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -28,7 +28,7 @@
|
||||
<option disabled>────────────</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>
|
||||
|
@@ -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]
|
||||
|
Reference in New Issue
Block a user