mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 15:32:38 -07:00
Merge branch 'nightly' into python3
# Conflicts: # plexpy/webserve.py
This commit is contained in:
commit
b39ac866f2
12 changed files with 23 additions and 16 deletions
|
@ -2678,8 +2678,11 @@ class WebInterface(object):
|
|||
@requireAuth(member_of("admin"))
|
||||
def toggleVerbose(self, **kwargs):
|
||||
plexpy.VERBOSE = not plexpy.VERBOSE
|
||||
logger.initLogger(console=not plexpy.QUIET,
|
||||
log_dir=plexpy.CONFIG.LOG_DIR, verbose=plexpy.VERBOSE)
|
||||
|
||||
plexpy.CONFIG.__setattr__('VERBOSE_LOGS', plexpy.VERBOSE)
|
||||
plexpy.CONFIG.write()
|
||||
|
||||
logger.initLogger(console=not plexpy.QUIET, log_dir=plexpy.CONFIG.LOG_DIR, verbose=plexpy.VERBOSE)
|
||||
logger.info("Verbose toggled, set to %s", plexpy.VERBOSE)
|
||||
logger.debug("If you read this message, debug logging is available")
|
||||
raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT + "logs")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue