Make verbose logging an advanced config option (Fixes Tautulli/Tautulli-Issues#205)

* Verbose logging is enabled by default
* Make toggleVerbose stick
This commit is contained in:
JonnyWong16 2020-01-20 20:49:37 -08:00
commit b9d5e49a71
4 changed files with 12 additions and 5 deletions

View file

@ -65,7 +65,7 @@ SYS_LANGUAGE = None
SYS_ENCODING = None
QUIET = False
VERBOSE = True
VERBOSE = False
DAEMON = False
CREATEPID = False
PIDFILE = None
@ -122,6 +122,7 @@ def initialize(config_file):
global CONFIG
global CONFIG_FILE
global VERBOSE
global _INITIALIZED
global CURRENT_VERSION
global LATEST_VERSION
@ -152,6 +153,8 @@ def initialize(config_file):
if not log_writable and not QUIET:
sys.stderr.write("Unable to create the log directory. Logging to screen only.\n")
VERBOSE = VERBOSE or bool(CONFIG.VERBOSE_LOGS)
# Start the logger, disable console if needed
logger.initLogger(console=not QUIET, log_dir=CONFIG.LOG_DIR if log_writable else None,
verbose=VERBOSE)