We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47681c5 commit 21dfc19Copy full SHA for 21dfc19
ietf/wsgi.py
@@ -40,13 +40,19 @@
40
41
import os
42
import sys
43
+import syslog
44
45
path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
46
47
+syslog.openlog("datatracker", syslog.LOG_PID, syslog.LOG_USER)
48
+
49
# Virtualenv support
50
virtualenv_activation = os.path.join(path, "env", "bin", "activate_this.py")
51
if os.path.exists(virtualenv_activation):
52
+ syslog.syslog("Starting datatracker wsgi with virtualenv %s" % os.path.dirname(os.path.dirname(virtualenv_activation)))
53
execfile(virtualenv_activation, dict(__file__=virtualenv_activation))
54
+else:
55
+ syslog.syslog("Starting datatracker wsgi without virtualenv")
56
57
if not path in sys.path:
58
sys.path.insert(0, path)
0 commit comments