mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 02:45:54 +08:00
set database logger level (#270)
### What problem does this PR solve? Issue link:#264 ### Type of change - [x] Performance Improvement
This commit is contained in:
parent
6748872b0b
commit
e1e693ec36
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user