Skip to content
Snippets Groups Projects
Unverified Commit e1e693ec authored by KevinHuSh's avatar KevinHuSh Committed by GitHub
Browse files

set database logger level (#270)

### What problem does this PR solve?

Issue link:#264

### Type of change

- [x] Performance Improvement
parent 6748872b
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
# 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
...@@ -36,6 +38,7 @@ stat_logger = getLogger("stat") ...@@ -36,6 +38,7 @@ stat_logger = getLogger("stat")
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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment