From f24e58031f5d6796868221cdb8d2e7e26632ab5f Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Mon, 30 May 2016 12:08:13 -0700 Subject: [PATCH] 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 --- nova/api/openstack/compute/assisted_volume_snapshots.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/nova/api/openstack/compute/assisted_volume_snapshots.py b/nova/api/openstack/compute/assisted_volume_snapshots.py index dcf08705d87c..0c241799fa78 100644 --- a/nova/api/openstack/compute/assisted_volume_snapshots.py +++ b/nova/api/openstack/compute/assisted_volume_snapshots.py @@ -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)