Standardize logging for v2 api extensions

- add log translation hints for warning, error and info levels
- remove pointless debug message

Change-Id: I67c5e77e62f8ef89204b67426b88856ef91dfc26
This commit is contained in:
Chris Yeoh
2014-06-25 11:12:02 +09:30
parent 05ab558cf7
commit 9ca93225e0
6 changed files with 18 additions and 20 deletions

View File

@@ -606,8 +606,7 @@ class Controller(wsgi.Controller):
msg = _('marker [%s] not found') % marker
raise exc.HTTPBadRequest(explanation=msg)
except exception.FlavorNotFound:
log_msg = _("Flavor '%s' could not be found ")
LOG.debug(log_msg, search_opts['flavor'])
LOG.debug("Flavor '%s' could not be found", search_opts['flavor'])
# TODO(mriedem): Move to ObjectListBase.__init__ for empty lists.
instance_list = objects.InstanceList(objects=[])