edit: faiss 전용 rest 서버 추가

This commit is contained in:
2025-04-28 11:26:19 +09:00
parent 19e62f5724
commit 6b212125a4
76 changed files with 6014 additions and 92 deletions

View File

@@ -95,18 +95,18 @@ def get_logger():
return custom_logger
if custom_logger is None:
custom_logger = logging.getLogger(LOGGER_NAME)
# if custom_logger is None:
# custom_logger = logging.getLogger(LOGGER_NAME)
if not os.path.exists(LOGGER_DIR):
os.makedirs(LOGGER_DIR)
# if not os.path.exists(LOGGER_DIR):
# os.makedirs(LOGGER_DIR)
if not __LOGGER_FILE_PATH:
logger_init(custom_logger, level=LOGGER_LEVEL)
else:
if not os.path.exists(LOGGER_DIR):
os.makedirs(LOGGER_DIR)
logger_init(custom_logger, level=LOGGER_LEVEL, file_log_path=__LOGGER_FILE_PATH)
# if not __LOGGER_FILE_PATH:
# logger_init(custom_logger, level=LOGGER_LEVEL)
# else:
# if not os.path.exists(LOGGER_DIR):
# os.makedirs(LOGGER_DIR)
# logger_init(custom_logger, level=LOGGER_LEVEL, file_log_path=__LOGGER_FILE_PATH)
def test():
custom_logger.info('Module: custom_log.py')