Activity log for bug #833949

Date Who What changed Old value New value Message
2011-08-25 17:21:32 Bruno Clermont bug added bug
2011-08-25 17:23:03 Bruno Clermont description I would like to suggest this: --- /tmp/wsgi.py 2011-08-25 13:19:01.000000000 -0400 +++ /usr/local/src/sologroup.gs/eggs/djangorecipe-0.99-py2.6.egg/djangorecipe/wsgi.py 2011-08-25 13:18:15.000000000 -0400 @@ -1,4 +1,5 @@ import sys +import os from django.core import management @@ -10,8 +11,13 @@ mod = getattr(mod, comp) except ImportError, e: - sys.stderr.write("Error loading the settings module '%s': %s" - % (settings_file, e)) + if logfile: + fh = open(logfile, 'a') + message = "Error loading the settings module '%s': %s" % (settings_file, e) + fh.write(message) + fh.write(os.linesep) + fh.close() + sys.stderr.write(message) sys.exit(1) # Setup settings so usefull when debugging apache/wsgi/django/missing dependencies I would like to suggest the attached patch. so usefull when debugging apache/wsgi/django/missing dependencies
2011-08-25 17:23:59 Bruno Clermont attachment added on import error, use logfile argument to log the message there too https://bugs.launchpad.net/djangorecipe/+bug/833949/+attachment/2313892/+files/wsgi.diff