summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-02-15 21:02:16 +0000
committerGerrit Code Review <review@openstack.org>2012-02-15 21:02:16 +0000
commit5e267199ea64d4d45b668ace4a497c49eb942d9b (patch)
tree4aa8f72dd3f2c6e4bd3b8558a895bd091192a5b8 /nova/api
parent3a95d451edfa622b987cdc8f904cd00262f32cea (diff)
parent2fa3f0b1df62217e8efa20d2b963e61b9659e3d5 (diff)
downloadnova-5e267199ea64d4d45b668ace4a497c49eb942d9b.tar.gz
nova-5e267199ea64d4d45b668ace4a497c49eb942d9b.tar.xz
nova-5e267199ea64d4d45b668ace4a497c49eb942d9b.zip
Merge "LOG.exception only works while in an exception handler"
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/servers.py4
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']