mirror of
https://github.com/Thor77/TeamspeakStats.git
synced 2025-07-26 16:48:45 -04:00
duplicate debug-enable to get debug-output from parse_config
This commit is contained in:
parent
c094edb6e9
commit
eb9d26cc1e
1 changed files with 5 additions and 3 deletions
|
@ -39,12 +39,14 @@ def cli():
|
||||||
|
|
||||||
|
|
||||||
def main(config=None, idmap=None, log=None, output=None, debug=False):
|
def main(config=None, idmap=None, log=None, output=None, debug=False):
|
||||||
|
if debug:
|
||||||
|
logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
if config:
|
if config:
|
||||||
config = abspath(config)
|
config = abspath(config)
|
||||||
if not exists(config):
|
if not exists(config):
|
||||||
logger.fatal('config not found (%s)', config)
|
logger.fatal('config not found (%s)', config)
|
||||||
idmap, log, output, debug = parse_config(config)
|
idmap, log, output, debug = parse_config(config)
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
logger.setLevel(logging.DEBUG)
|
logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue