Remove normal API operation logs from API layer

At nova.osapi_compute.wsgi.server. normal API operation logs are
output as common way like:
  127.0.0.1 "PUT /v2.1/os-aggregates/10 HTTP/1.1" status: 200 len: 597
  time: 0.3027461

So it is not necessary to output the logs at each API layer like the
other APIs.
So this patch removes these logs from assisted_volume_snapshots.

Change-Id: I292e50d9e5626893dd28ab48a721e53cbf90362e
This commit is contained in:
Ken'ichi Ohmichi
2016-05-30 12:08:13 -07:00
parent bcb066244e
commit f24e58031f

View File

@@ -16,7 +16,6 @@
"""The Assisted volume snapshots extension."""
from oslo_log import log as logging
from oslo_serialization import jsonutils
import six
from webob import exc
@@ -27,10 +26,8 @@ from nova.api.openstack import wsgi
from nova.api import validation
from nova import compute
from nova import exception
from nova.i18n import _LI
LOG = logging.getLogger(__name__)
ALIAS = 'os-assisted-volume-snapshots'
authorize = extensions.os_compute_authorizer(ALIAS)
@@ -53,8 +50,6 @@ class AssistedVolumeSnapshotsController(wsgi.Controller):
create_info = snapshot['create_info']
volume_id = snapshot['volume_id']
LOG.info(_LI("Create assisted snapshot from volume %s"), volume_id,
context=context)
try:
return self.compute_api.volume_snapshot_create(context, volume_id,
create_info)
@@ -69,8 +64,6 @@ class AssistedVolumeSnapshotsController(wsgi.Controller):
context = req.environ['nova.context']
authorize(context, action='delete')
LOG.info(_LI("Delete snapshot with id: %s"), id, context=context)
delete_metadata = {}
delete_metadata.update(req.GET)