aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootstrap.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bootstrap.py b/bootstrap.py
index cadefcca..d13d4799 100644
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -3,12 +3,15 @@
import sys
if 'threading' in sys.modules:
raise Exception('threading module loaded before patching!')
-import gevent.monkey
-gevent.monkey.patch_thread()
-
import conf
import logging
+if not (conf.WEBSERVER_DEBUG or conf.ON_HEROKU):
+ import gevent.monkey
+ gevent.monkey.patch_thread()
+
+
+
def set_logging(log_path, log_level=logging.INFO,
log_format='%(asctime)s %(levelname)s %(message)s'):
bgstack15