mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-21 20:30:43 +00:00
set log level after config init
This commit is contained in:
parent
3a525bcad8
commit
8c89453bf6
@ -57,12 +57,13 @@ class AnsibleDoctor:
|
||||
except ansibledoctor.Exception.ConfigError as e:
|
||||
self.log.sysexit_with_message(e)
|
||||
|
||||
self.log.set_level(config.config["logging"]["level"])
|
||||
|
||||
if config.is_role:
|
||||
self.logger.info("Ansible role detected")
|
||||
else:
|
||||
self.log.sysexit_with_message("No Ansible role detected")
|
||||
|
||||
self.log.set_level(config.config["logging"]["level"])
|
||||
self.logger.info("Using config file {}".format(config.config_file))
|
||||
|
||||
return config
|
||||
|
Loading…
Reference in New Issue
Block a user