From dc887267572c821ce97bec9536a699b72bdae443 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Thu, 16 May 2013 20:49:42 +0000 Subject: Don't raise unnecessary stack traces in EC2 API exception.EC2APIError exceptions are always expected, so no reason to have a LOG.exception when one is raised. Furthermore nova.api.ec2.ec2_error already logs the exception so the duplicate log statement is just removed Fix Bug 1180973 Change-Id: I4b42a9a764f6e15bb94a383e8a725d52d7436bd7 --- nova/api/ec2/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/nova/api/ec2/__init__.py b/nova/api/ec2/__init__.py index 7ce18685b..f79057167 100644 --- a/nova/api/ec2/__init__.py +++ b/nova/api/ec2/__init__.py @@ -501,8 +501,6 @@ class Executor(wsgi.Application): LOG.info(_('NotFound raised: %s'), unicode(ex), context=context) return ec2_error(req, request_id, type(ex).__name__, unicode(ex)) except exception.EC2APIError as ex: - LOG.exception(_('EC2APIError raised: %s'), unicode(ex), - context=context) if ex.code: return ec2_error(req, request_id, ex.code, unicode(ex)) else: -- cgit