Merge "Remove logging import unused"
This commit is contained in:
commit
03acfe20f9
@ -14,7 +14,6 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
import oslo_log.log as logging
|
|
||||||
import pecan
|
import pecan
|
||||||
from pecan import request
|
from pecan import request
|
||||||
|
|
||||||
@ -23,9 +22,6 @@ from tricircle.api.controllers import routing
|
|||||||
import tricircle.common.context as t_context
|
import tricircle.common.context as t_context
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def expose(*args, **kwargs):
|
def expose(*args, **kwargs):
|
||||||
kwargs.setdefault('content_type', 'application/json')
|
kwargs.setdefault('content_type', 'application/json')
|
||||||
kwargs.setdefault('template', 'json')
|
kwargs.setdefault('template', 'json')
|
||||||
|
@ -17,7 +17,6 @@ import six
|
|||||||
|
|
||||||
import pecan
|
import pecan
|
||||||
|
|
||||||
from oslo_log import log as logging
|
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
|
|
||||||
from tricircle.common import constants as cons
|
from tricircle.common import constants as cons
|
||||||
@ -25,8 +24,6 @@ import tricircle.common.exceptions as t_exceptions
|
|||||||
from tricircle.common.i18n import _
|
from tricircle.common.i18n import _
|
||||||
import tricircle.db.api as db_api
|
import tricircle.db.api as db_api
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def get_import_path(cls):
|
def get_import_path(cls):
|
||||||
return cls.__module__ + "." + cls.__name__
|
return cls.__module__ + "." + cls.__name__
|
||||||
|
@ -17,7 +17,6 @@ Client side of the job daemon RPC API.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
|
||||||
import oslo_messaging as messaging
|
import oslo_messaging as messaging
|
||||||
|
|
||||||
import rpc
|
import rpc
|
||||||
@ -35,8 +34,6 @@ rpcapi_cap_opt = cfg.StrOpt('xjobapi',
|
|||||||
'xjob api in any service')
|
'xjob api in any service')
|
||||||
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
CONF.register_opt(rpcapi_cap_opt, 'upgrade_levels')
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class XJobAPI(object):
|
class XJobAPI(object):
|
||||||
|
|
||||||
|
@ -23,10 +23,6 @@ from tricircle.common import policy
|
|||||||
from tricircle.db import api as db_api
|
from tricircle.db import api as db_api
|
||||||
from tricircle.db import core
|
from tricircle.db import core
|
||||||
|
|
||||||
from oslo_log import log as logging
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class FakeResponse(object):
|
class FakeResponse(object):
|
||||||
def __new__(cls, code=500):
|
def __new__(cls, code=500):
|
||||||
|
Loading…
Reference in New Issue
Block a user