]> xenbits.xensource.com Git - osstest/openstack-nova.git/commitdiff
Remove unnecessary debug logs of normal API ops
authorKen'ichi Ohmichi <ken-oomichi@wx.jp.nec.com>
Fri, 12 Aug 2016 17:18:28 +0000 (10:18 -0700)
committerKen'ichi Ohmichi <ken-oomichi@wx.jp.nec.com>
Fri, 12 Aug 2016 17:18:28 +0000 (10:18 -0700)
There are some debug log messages about normal API operations
in each API method, but Nova WSGI framework has already output
the similar messages. So these messages are meaningless, and
this patch removes them.

With Ifea3edd912ec80eed2869c3f97345d403ea96c89 , this work was
done once but the merger of servers.py retrieved this logs.

Change-Id: Ifef708ca4110bc91f8cf18e15bc8e22509606994

nova/api/openstack/compute/servers.py

index 72eff3f4c847c13852f18d8646fce963bd602b40..edec9c0c43c31f09434d08b70964561b95c21dc7 100644 (file)
@@ -1067,7 +1067,6 @@ class ServersController(wsgi.Controller):
         context = req.environ['nova.context']
         instance = self._get_instance(context, id)
         context.can(server_policies.SERVERS % 'start', instance)
-        LOG.debug('start instance', instance=instance)
         try:
             self.compute_api.start(context, instance)
         except (exception.InstanceNotReady, exception.InstanceIsLocked) as e:
@@ -1088,7 +1087,6 @@ class ServersController(wsgi.Controller):
         context.can(server_policies.SERVERS % 'stop',
                     target={'user_id': instance.user_id,
                             'project_id': instance.project_id})
-        LOG.debug('stop instance', instance=instance)
         try:
             self.compute_api.stop(context, instance)
         except (exception.InstanceNotReady, exception.InstanceIsLocked) as e: