fix (retrieval_chitchat): fix log handler
@@ -10,7 +10,7 @@ from fastapi import FastAPI, Body
from pydantic import BaseModel
import torch
import sentry_sdk
-from sentence_transformers import SentenceTransformer, LoggingHandler
+from sentence_transformers import SentenceTransformer
from sklearn.preprocessing import normalize
@@ -24,7 +24,7 @@ EMBEDDING_SPLIT_BY = 27
sentry_sdk.init(os.getenv("SENTRY_DSN"))
logging.basicConfig(
- format="%(asctime)s - %(message)s", datefmt="%Y-%m-%d %H:%M:%S", level=logging.INFO, handlers=[LoggingHandler()]
+ format="%(asctime)s - %(message)s", datefmt="%Y-%m-%d %H:%M:%S", level=logging.INFO
)
logger = logging.getLogger(__name__)
