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

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