KevinHuSh
commited on
Commit
·
8a6056e
1
Parent(s):
4bf8e84
set database logger level (#270)
Browse files### What problem does this PR solve?
Issue link:#264
### Type of change
- [x] Performance Improvement
- api/settings.py +3 -0
api/settings.py
CHANGED
@@ -13,6 +13,8 @@
|
|
13 |
# See the License for the specific language governing permissions and
|
14 |
# limitations under the License.
|
15 |
#
|
|
|
|
|
16 |
from rag.utils import ELASTICSEARCH
|
17 |
from rag.nlp import search
|
18 |
import os
|
@@ -36,6 +38,7 @@ stat_logger = getLogger("stat")
|
|
36 |
access_logger = getLogger("access")
|
37 |
database_logger = getLogger("database")
|
38 |
chat_logger = getLogger("chat")
|
|
|
39 |
|
40 |
API_VERSION = "v1"
|
41 |
RAG_FLOW_SERVICE_NAME = "ragflow"
|
|
|
13 |
# See the License for the specific language governing permissions and
|
14 |
# limitations under the License.
|
15 |
#
|
16 |
+
import logging
|
17 |
+
|
18 |
from rag.utils import ELASTICSEARCH
|
19 |
from rag.nlp import search
|
20 |
import os
|
|
|
38 |
access_logger = getLogger("access")
|
39 |
database_logger = getLogger("database")
|
40 |
chat_logger = getLogger("chat")
|
41 |
+
database_logger.setLevel(logging.WARNING)
|
42 |
|
43 |
API_VERSION = "v1"
|
44 |
RAG_FLOW_SERVICE_NAME = "ragflow"
|