mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 23:42:37 -07:00
Allow global config setting for PMS log window size.
This commit is contained in:
parent
8f0ba5ba4f
commit
38e04bd42a
2 changed files with 3 additions and 1 deletions
|
@ -46,6 +46,7 @@ _CONFIG_DEFINITIONS = {
|
|||
'PMS_IP': (str, 'PMS', '127.0.0.1'),
|
||||
'PMS_IS_REMOTE': (int, 'PMS', 0),
|
||||
'PMS_LOGS_FOLDER': (str, 'PMS', ''),
|
||||
'PMS_LOGS_LINE_CAP': (int, 'PMS', 1000),
|
||||
'PMS_NAME': (unicode, 'PMS', ''),
|
||||
'PMS_PORT': (int, 'PMS', 32400),
|
||||
'PMS_TOKEN': (str, 'PMS', ''),
|
||||
|
|
|
@ -2287,7 +2287,7 @@ class WebInterface(object):
|
|||
@cherrypy.tools.json_out()
|
||||
@requireAuth(member_of("admin"))
|
||||
@addtoapi()
|
||||
def get_plex_log(self, window=1000, **kwargs):
|
||||
def get_plex_log(self, **kwargs):
|
||||
""" Get the PMS logs.
|
||||
|
||||
```
|
||||
|
@ -2309,6 +2309,7 @@ class WebInterface(object):
|
|||
]
|
||||
```
|
||||
"""
|
||||
window = int(kwargs.get('window', plexpy.CONFIG.PMS_LOGS_LINE_CAP))
|
||||
log_lines = []
|
||||
log_type = kwargs.get('log_type', 'server')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue