Merge "Remove normal API operation logs from API layer"

This commit is contained in:
Jenkins
2016-06-07 12:23:01 +00:00
committed by Gerrit Code Review

View File

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