chore: use DEBUG in dify_config instead of parsing raw system environment variable in place (#10437)

This commit is contained in:
Bowen Liang
2024-11-08 09:34:11 +08:00
committed by GitHub
parent 438ad8148b
commit 0ebe198ff1
8 changed files with 16 additions and 14 deletions

View File

@@ -1,6 +1,8 @@
import os
if os.environ.get("DEBUG", "false").lower() != "true":
from configs import dify_config
if dify_config.DEBUG:
from gevent import monkey
monkey.patch_all()