Browse Source

fix: (#10437 followup) fix conditions with DEBUG config (#10438)

Bowen Liang 5 months ago
parent
commit
0e8ab0588f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      api/app.py
  2. 1 1
      api/app_factory.py

+ 1 - 1
api/app.py

@@ -2,7 +2,7 @@ import os
 
 from configs import dify_config
 
-if dify_config.DEBUG:
+if not dify_config.DEBUG:
     from gevent import monkey
 
     monkey.patch_all()

+ 1 - 1
api/app_factory.py

@@ -2,7 +2,7 @@ import os
 
 from configs import dify_config
 
-if dify_config.DEBUG:
+if not dify_config.DEBUG:
     from gevent import monkey
 
     monkey.patch_all()