diff options
| author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-02-14 23:12:16 +0000 |
|---|---|---|
| committer | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2012-02-14 23:14:07 +0000 |
| commit | 2fa3f0b1df62217e8efa20d2b963e61b9659e3d5 (patch) | |
| tree | 3eaa0c3f91e29045dc6bb8fab6bc2889e4cba1f8 /nova/api | |
| parent | e1ae20537542a28d14c7555301a33c266aa45214 (diff) | |
LOG.exception only works while in an exception handler
It's also unnecessary to set exc_info to sys.exc_info since it does
this for you
Change-Id: Idd8844d18d4945c029f25dd70de7c842bd9a8305
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/servers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py index a9d3a93a2..649566ec9 100644 --- a/nova/api/openstack/compute/servers.py +++ b/nova/api/openstack/compute/servers.py @@ -895,11 +895,11 @@ class Controller(wsgi.Controller): reboot_type = body['reboot']['type'].upper() if not valid_reboot_types.count(reboot_type): msg = _("Argument 'type' for reboot is not HARD or SOFT") - LOG.exception(msg) + LOG.error(msg) raise exc.HTTPBadRequest(explanation=msg) else: msg = _("Missing argument 'type' for reboot") - LOG.exception(msg) + LOG.error(msg) raise exc.HTTPBadRequest(explanation=msg) context = req.environ['nova.context'] |
