Unify the oslo_log import usage
In watcher project, some py file use "from oslo_log import log as logging" for import, but more use "from oslo_log import log" like https://github.com/openstack/watcher/blob/master/watcher/decision_engine/strategy/strategies/dummy_strategy.py#L19 this patch to unify it. Change-Id: I9c667bb202bebc7942d1af5ce438375285c2e2ba
This commit is contained in:
@@ -24,7 +24,7 @@ import string
|
||||
from croniter import croniter
|
||||
|
||||
from jsonschema import validators
|
||||
from oslo_log import log as logging
|
||||
from oslo_log import log
|
||||
from oslo_utils import strutils
|
||||
from oslo_utils import uuidutils
|
||||
import six
|
||||
@@ -35,7 +35,7 @@ from watcher import conf
|
||||
|
||||
CONF = conf.CONF
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
LOG = log.getLogger(__name__)
|
||||
|
||||
|
||||
class Struct(dict):
|
||||
|
||||
Reference in New Issue
Block a user