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
commit 0ebe198ff1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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()