Remove unused logger

There are a lot of files contain import logging which is used for
creating logger object. However in some files we only have definition of
logger without using him. In this patch all unused loggers and imports
are deleted.

Change-Id: Iedba6d40850cb050c5c25d9b8a6a1d7128fd4bee
This commit is contained in:
Sergey Kraynev 2014-04-11 05:01:12 -04:00 committed by Gerrit Code Review
parent ed84893b7d
commit a787e7b5d1
28 changed files with 0 additions and 84 deletions

View File

@ -14,14 +14,10 @@
from heat.common import exception
from heat.engine import properties
from heat.engine import resource
from heat.openstack.common import log as logging
from .. import clients # noqa
logger = logging.getLogger(__name__)
if clients.marconiclient is None:
def resource_mapping():
return {}

View File

@ -19,14 +19,11 @@ from heat.engine import environment
from heat.engine import parser
from heat.engine import resource
from heat.engine import scheduler
from heat.openstack.common import log as logging
from heat.tests import common
from heat.tests import utils
from ..resources import cloud_dns # noqa
logger = logging.getLogger(__name__)
domain_only_template = '''
{
"AWSTemplateFormatVersion" : "2010-09-09",

View File

@ -17,9 +17,6 @@ from webob import Request
from heat.api.cfn.v1 import signal
from heat.api.cfn.v1 import stacks
from heat.common import wsgi
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
class API(wsgi.Router):

View File

@ -19,9 +19,7 @@ from heat.api.cloudwatch import watch
from heat.api.middleware.version_negotiation import VersionNegotiationFilter
from heat.common import wsgi
from heat.openstack.common import gettextutils
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
gettextutils.install('heat')

View File

@ -29,13 +29,10 @@ cfg.CONF.import_opt('debug', 'heat.openstack.common.log')
from heat.common import serializers
from heat.common import exception
from heat.openstack.common import log as logging
import heat.openstack.common.rpc.common as rpc_common
from heat.common import wsgi
logger = logging.getLogger(__name__)
class Fault(object):

View File

@ -21,9 +21,6 @@ from heat.api.openstack.v1 import software_configs
from heat.api.openstack.v1 import software_deployments
from heat.api.openstack.v1 import stacks
from heat.common import wsgi
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
class API(wsgi.Router):

View File

@ -16,7 +16,6 @@ from Crypto.Cipher import AES
from oslo.config import cfg
from heat.openstack.common.crypto import utils
from heat.openstack.common import log as logging
auth_opts = [
@ -27,8 +26,6 @@ auth_opts = [
cfg.CONF.register_opts(auth_opts)
logger = logging.getLogger(__name__)
def encrypt(auth_info):
if auth_info is None:

View File

@ -21,11 +21,8 @@ from oslo.config import cfg
from heat.common import exception
import heat.openstack.common.log as logging
from heat.openstack.common import policy
logger = logging.getLogger(__name__)
CONF = cfg.CONF

View File

@ -14,9 +14,6 @@
from heat.engine import constraints as constr
from heat.engine import parameters
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
PARAM_CONSTRAINTS = (

View File

@ -14,9 +14,6 @@ from heat.engine.cfn import template as cfn_template
from heat.engine.hot import parameters
from heat.engine import template
from heat.openstack.common.gettextutils import _
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
class HOTemplate(template.Template):

View File

@ -17,9 +17,6 @@ from heat.engine import properties
from heat.engine.properties import Properties
from heat.engine import resource
from heat.engine import watchrule
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
class CloudWatchAlarm(resource.Resource):

View File

@ -17,9 +17,6 @@ from heat.engine import properties
from heat.engine import resource
from heat.engine.resources import route_table
from heat.openstack.common.gettextutils import _
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
class InternetGateway(resource.Resource):

View File

@ -15,9 +15,6 @@ from heat.engine import clients
from heat.engine import properties
from heat.engine import resource
from heat.engine.resources.neutron import neutron
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
class NetworkInterface(resource.Resource):

View File

@ -15,13 +15,10 @@ from heat.engine import clients
from heat.engine import constraints
from heat.engine import properties
from heat.engine.resources.neutron import neutron
from heat.openstack.common import log as logging
if clients.neutronclient is not None:
from neutronclient.common.exceptions import NeutronClientException
logger = logging.getLogger(__name__)
class Firewall(neutron.NeutronResource):
"""

View File

@ -15,13 +15,10 @@ from heat.engine import clients
from heat.engine import properties
from heat.engine.resources.neutron import neutron
from heat.engine.resources.neutron import router
from heat.openstack.common import log as logging
if clients.neutronclient is not None:
from neutronclient.common.exceptions import NeutronClientException
logger = logging.getLogger(__name__)
class FloatingIP(neutron.NeutronResource):
PROPERTIES = (

View File

@ -14,14 +14,11 @@
from heat.engine import clients
from heat.engine import properties
from heat.engine.resources.neutron import neutron
from heat.openstack.common import log as logging
if clients.neutronclient is not None:
import neutronclient.common.exceptions as neutron_exp
from neutronclient.neutron import v2_0 as neutronV20
logger = logging.getLogger(__name__)
class Net(neutron.NeutronResource):
PROPERTIES = (

View File

@ -19,13 +19,10 @@ from heat.engine import clients
from heat.engine import constraints
from heat.engine import properties
from heat.engine.resources.neutron import neutron
from heat.openstack.common import log as logging
if clients.neutronclient is not None:
from neutronclient.common.exceptions import NeutronClientException
logger = logging.getLogger(__name__)
class NetworkGateway(neutron.NeutronResource):
'''

View File

@ -17,14 +17,11 @@ from heat.engine import properties
from heat.engine.resources.neutron import neutron
from heat.engine.resources.neutron import subnet
from heat.engine import support
from heat.openstack.common import log as logging
if clients.neutronclient is not None:
from neutronclient.common.exceptions import NeutronClientException
from neutronclient.neutron import v2_0 as neutronV20
logger = logging.getLogger(__name__)
class Router(neutron.NeutronResource):

View File

@ -16,13 +16,10 @@ from heat.engine import clients
from heat.engine import constraints
from heat.engine import properties
from heat.engine.resources.neutron import neutron
from heat.openstack.common import log as logging
if clients.neutronclient is not None:
import neutronclient.common.exceptions as neutron_exp
logger = logging.getLogger(__name__)
class SecurityGroup(neutron.NeutronResource):

View File

@ -15,13 +15,10 @@ from heat.engine import clients
from heat.engine import constraints
from heat.engine import properties
from heat.engine.resources.neutron import neutron
from heat.openstack.common import log as logging
if clients.neutronclient is not None:
from neutronclient.common.exceptions import NeutronClientException
logger = logging.getLogger(__name__)
class Subnet(neutron.NeutronResource):

View File

@ -15,13 +15,10 @@ from heat.engine import clients
from heat.engine import constraints
from heat.engine import properties
from heat.engine.resources.neutron import neutron
from heat.openstack.common import log as logging
if clients.neutronclient is not None:
from neutronclient.common.exceptions import NeutronClientException
logger = logging.getLogger(__name__)
class VPNService(neutron.NeutronResource):
"""

View File

@ -20,9 +20,6 @@ from heat.engine import properties
from heat.engine import resource
from heat.engine.resources import nova_utils
from heat.openstack.common.gettextutils import _
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
class KeyPair(resource.Resource):

View File

@ -16,13 +16,10 @@ from heat.engine import properties
from heat.engine import resource
from heat.engine.resources.neutron import neutron
from heat.engine.resources.vpc import VPC
from heat.openstack.common import log as logging
if clients.neutronclient is not None:
from neutronclient.common.exceptions import NeutronClientException
logger = logging.getLogger(__name__)
class RouteTable(resource.Resource):

View File

@ -15,9 +15,6 @@ from heat.common import exception
from heat.engine import clients
from heat.engine import properties
from heat.engine import resource
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
class SecurityGroup(resource.Resource):

View File

@ -19,9 +19,6 @@ from heat.common import urlfetch
from heat.engine import properties
from heat.engine.properties import Properties
from heat.engine import stack_resource
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
class NestedStack(stack_resource.StackResource):

View File

@ -16,9 +16,6 @@ from heat.engine import clients
from heat.engine import properties
from heat.engine import resource
from heat.engine.resources.vpc import VPC
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
class Subnet(resource.Resource):

View File

@ -25,9 +25,6 @@ from heat.engine import environment
from heat.engine import properties
from heat.engine import stack_resource
from heat.engine import template
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
def generate_class(name, template_name):

View File

@ -17,9 +17,6 @@ from heat.engine import constraints
from heat.engine import properties
from heat.engine import resource
from heat.engine.resources.neutron import neutron
from heat.openstack.common import log as logging
logger = logging.getLogger(__name__)
class VPC(resource.Resource):