Commit d1f24647 by Michael Roytman

Change logger warning to error when error parsing configuration file and update…

Change logger warning to error when error parsing configuration file and update logger disablement level
parent b6ea11cc
......@@ -146,7 +146,7 @@ def _open_yaml_file(file_str):
yaml_file = yaml.load(file)
return yaml_file
except yaml.YAMLError, exc:
LOGGER.warning("error in configuration file: %s" % str(exc))
LOGGER.error("error in configuration file: %s" % str(exc))
sys.exit(1)
def change_set_to_roles(files, git_dir, roles_dirs, playbooks_dirs, graph):
......@@ -331,7 +331,7 @@ if __name__ == '__main__':
logging.basicConfig()
if not args.verbose:
logging.disable(logging.WARNING)
logging.disable(logging.ERROR)
# set of modified files in the commit range
change_set = set()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment