Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

set database logger level (#270)

KevinHuShe1e693ec36d3
diff --git a/api/settings.py b/api/settings.py
index 4a0387c4bb..be4ae85a3e 100644
--- a/api/settings.py
+++ b/api/settings.py
@@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
+import logging
+
from rag.utils import ELASTICSEARCH
from rag.nlp import search
import os
@@ -36,6 +38,7 @@ stat_logger = getLogger("stat")
access_logger = getLogger("access")
database_logger = getLogger("database")
chat_logger = getLogger("chat")
+database_logger.setLevel(logging.WARNING)
API_VERSION = "v1"
RAG_FLOW_SERVICE_NAME = "ragflow"