Report INFO level log if cannot load astute.yaml

Fuelmenu doesn't need to report ERROR level log when reporting
"Unable to read YAML: /etc/fuel/astute.yaml" because we have no
default astute.yaml any more.

Change-Id: I6ae10f45f5fdc2d94d42fb018a3d7090a5c6b057
Closes-bug: #1567307
This commit is contained in:
Julia Varlamova 2016-04-20 11:02:02 +03:00
parent cc4628c865
commit f4b30c916a
1 changed files with 3 additions and 1 deletions

View File

@ -135,8 +135,10 @@ class Settings(OrderedDict):
infile.read()).safe_substitute(template_kwargs or {}))
self.merge(settings)
except IOError:
log.info("Unable to read YAML: %s", settings_file)
except Exception:
log.error("Unable to read YAML: %s", settings_file)
log.error("Malformed YAML: %s", settings_file)
return self