centralize logging initialization

so it can be shared across modules
This commit is contained in:
Min RK
2018-08-31 12:00:42 +02:00
parent 204442d370
commit 37ad207be9
3 changed files with 25 additions and 12 deletions

View File

@@ -225,6 +225,9 @@ def main(argv=None):
if argv is None:
argv = sys.argv[1:]
from .log import init_logging
init_logging()
argparser = argparse.ArgumentParser()
argparser.add_argument(
'--config-path',