mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Enable PlexPy dev environment using --dev flag
This commit is contained in:
parent
0b126278f9
commit
252145cf58
4 changed files with 41 additions and 22 deletions
|
@ -449,7 +449,9 @@ class Config(object):
|
|||
for key in _CONFIG_DEFINITIONS.keys():
|
||||
self.check_setting(key)
|
||||
self._upgrade()
|
||||
self._blacklist()
|
||||
|
||||
if not plexpy.DEV:
|
||||
self._blacklist()
|
||||
|
||||
def _blacklist(self):
|
||||
""" Add tokens and passwords to blacklisted words in logger """
|
||||
|
@ -520,7 +522,8 @@ class Config(object):
|
|||
except IOError as e:
|
||||
plexpy.logger.error("Error writing configuration file: %s", e)
|
||||
|
||||
self._blacklist()
|
||||
if not plexpy.DEV:
|
||||
self._blacklist()
|
||||
|
||||
def __getattr__(self, name):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue