mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-22 04:40: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:
|
except ansibledoctor.Exception.ConfigError as e:
|
||||||
self.log.sysexit_with_message(e)
|
self.log.sysexit_with_message(e)
|
||||||
|
|
||||||
|
self.log.set_level(config.config["logging"]["level"])
|
||||||
|
|
||||||
if config.is_role:
|
if config.is_role:
|
||||||
self.logger.info("Ansible role detected")
|
self.logger.info("Ansible role detected")
|
||||||
else:
|
else:
|
||||||
self.log.sysexit_with_message("No Ansible role detected")
|
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))
|
self.logger.info("Using config file {}".format(config.config_file))
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
Loading…
Reference in New Issue
Block a user