Convert getLogger(__file__) into getLogger('heat...')

Makes a mess of logs when not installed.

Change-Id: Iab6bd247b943f276bf8de64aed65619b38f99acb
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
changes/39/139/1
Angus Salkeld 10 years ago
parent aca71be770
commit 4b5c3fee7b
  1. 2
      heat/db/sqlalchemy/session.py
  2. 2
      heat/engine/checkeddict.py
  3. 2
      heat/engine/eip.py
  4. 2
      heat/engine/parser.py
  5. 2
      heat/engine/resources.py
  6. 2
      heat/engine/security_group.py
  7. 2
      heat/engine/user.py
  8. 2
      heat/engine/volume.py

@ -22,7 +22,7 @@ from sqlalchemy.exc import DisconnectionError
from heat.db import api as db_api
from heat.openstack.common import cfg
logger = logging.getLogger(__file__)
logger = logging.getLogger('heat.db.sqlalchemy.session')
_ENGINE = None
_MAKER = None

@ -17,7 +17,7 @@ import collections
import re
import logging
logger = logging.getLogger(__file__)
logger = logging.getLogger('heat.engine.checkeddict')
class CheckedDict(collections.MutableMapping):

@ -18,7 +18,7 @@ import logging
from heat.common import exception
from heat.engine.resources import Resource
logger = logging.getLogger(__file__)
logger = logging.getLogger('heat.engine.eip')
class ElasticIp(Resource):

@ -22,7 +22,7 @@ from heat.engine import checkeddict
from heat.engine.resources import Resource
from heat.db import api as db_api
logger = logging.getLogger(__file__)
logger = logging.getLogger('heat.engine.parser')
class Stack(object):

@ -26,7 +26,7 @@ from heat.common.config import HeatEngineConfigOpts
from heat.db import api as db_api
from heat.engine import checkeddict
logger = logging.getLogger(__file__)
logger = logging.getLogger('heat.engine.resources')
class Resource(object):

@ -19,7 +19,7 @@ from novaclient.exceptions import NotFound
from heat.common import exception
from heat.engine.resources import Resource
logger = logging.getLogger(__file__)
logger = logging.getLogger('heat.engine.security_group')
class SecurityGroup(Resource):

@ -18,7 +18,7 @@ from novaclient.exceptions import BadRequest
from heat.common import exception
from heat.engine.resources import Resource
logger = logging.getLogger(__file__)
logger = logging.getLogger('heat.engine.user')
class User(Resource):

@ -20,7 +20,7 @@ import re
from heat.common import exception
from heat.engine.resources import Resource
logger = logging.getLogger(__file__)
logger = logging.getLogger('heat.engine.volume')
class Volume(Resource):

Loading…
Cancel
Save