mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Fix PlexPy log level filter
This commit is contained in:
parent
492d28ea37
commit
1cd0c112a6
3 changed files with 6 additions and 2 deletions
|
@ -3055,3 +3055,7 @@ a:hover .overlay-refresh-image:hover {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
#plexpy-log-levels label,
|
||||||
|
#plex-log-levels label {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<option disabled>────────────</option>
|
<option disabled>────────────</option>
|
||||||
<option value="DEBUG">Debug</option>
|
<option value="DEBUG">Debug</option>
|
||||||
<option value="INFO">Info</option>
|
<option value="INFO">Info</option>
|
||||||
<option value="WARN">Warning</option>
|
<option value="WARNING">Warning</option>
|
||||||
<option value="ERROR">Error</option>
|
<option value="ERROR">Error</option>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
|
|
@ -2263,7 +2263,7 @@ class WebInterface(object):
|
||||||
filt[tl][2] += '<br>' + l
|
filt[tl][2] += '<br>' + l
|
||||||
continue
|
continue
|
||||||
|
|
||||||
log_levels = ['DEBUG', 'INFO', 'WARN', 'ERROR']
|
log_levels = ['DEBUG', 'INFO', 'WARNING', 'ERROR']
|
||||||
if log_level in log_levels:
|
if log_level in log_levels:
|
||||||
log_levels = log_levels[log_levels.index(log_level)::]
|
log_levels = log_levels[log_levels.index(log_level)::]
|
||||||
filtered = [row for row in filt if row[1] in log_levels]
|
filtered = [row for row in filt if row[1] in log_levels]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue