Skip to content
Snippets Groups Projects
Commit db56d092 authored by Matt Traudt's avatar Matt Traudt Committed by Matt Traudt
Browse files

Configure logging after the config is validated

parent bcd16248
Branches
Tags
No related merge requests found
......@@ -18,12 +18,12 @@ def main():
parser = create_parser()
args = parser.parse_args()
conf = get_config(args)
configure_logging(conf)
conf_valid, conf_errors = validate_config(conf)
if not conf_valid:
for e in conf_errors:
log.critical(e)
exit(1)
configure_logging(conf)
def_args = [args, conf]
def_kwargs = {}
known_commands = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment