瀏覽代碼

set database logger level (#270)

### What problem does this PR solve?

Issue link:#264

### Type of change

- [x] Performance Improvement
tags/v0.1.0
KevinHuSh 1 年之前
父節點
當前提交
e1e693ec36
No account linked to committer's email address
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      api/settings.py

+ 3
- 0
api/settings.py 查看文件

# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #
import logging
from rag.utils import ELASTICSEARCH from rag.utils import ELASTICSEARCH
from rag.nlp import search from rag.nlp import search
import os import os
access_logger = getLogger("access") access_logger = getLogger("access")
database_logger = getLogger("database") database_logger = getLogger("database")
chat_logger = getLogger("chat") chat_logger = getLogger("chat")
database_logger.setLevel(logging.WARNING)
API_VERSION = "v1" API_VERSION = "v1"
RAG_FLOW_SERVICE_NAME = "ragflow" RAG_FLOW_SERVICE_NAME = "ragflow"

Loading…
取消
儲存