Permalink
Browse files

Fix logging problem when running in wsgi mode

  • Loading branch information...
1 parent 00ee8b7 commit 09961a1cb2721b14d25e77f3c505044ff8396565 @gozer gozer committed Dec 14, 2010
Showing with 8 additions and 1 deletion.
  1. +8 −1 wsgi/linkdrop.wsgi
View
@@ -1,6 +1,13 @@
# Find ourselves
-import os.path
+import os, sys
basedir = os.path.abspath(os.path.dirname(__file__))
+__here__ = os.path.dirname(__file__)
+__parent__ = os.path.dirname(__here__)
+
+sys.path.append(__parent__)
+
+from paste.script.util.logging_config import fileConfig
+fileConfig('%s/development.ini' % __parent__)
from paste.deploy import loadapp

0 comments on commit 09961a1

Please sign in to comment.