refactor utils

This commit is contained in:
peng.xu 2019-09-21 11:08:14 +08:00
parent 1e2cc2eb66
commit 8569309644
5 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ from contextlib import contextmanager
from milvus import Milvus
from mishards import (settings, exceptions)
from mishards.utils import singleton
from utils import singleton
logger = logging.getLogger(__name__)

View File

@ -13,7 +13,7 @@ LOG_PATH = env.str('LOG_PATH', '/tmp/mishards')
LOG_NAME = env.str('LOG_NAME', 'logfile')
TIMEZONE = env.str('TIMEZONE', 'UTC')
from mishards.utils.logger_helper import config
from utils.logger_helper import config
config(LOG_LEVEL, LOG_PATH, LOG_NAME, TIMEZONE)
SQLALCHEMY_DATABASE_URI = env.str('SQLALCHEMY_DATABASE_URI')

View File

@ -11,7 +11,7 @@ import queue
from functools import wraps
from kubernetes import client, config, watch
from mishards.utils import singleton
from utils import singleton
logger = logging.getLogger(__name__)