merged davisp logging branch (from asenchi patch) + fix to

gunicorn_django
This commit is contained in:
Benoit Chesneau 2010-01-18 00:35:47 +01:00
parent 5c7447ee31
commit 7592d25331
2 changed files with 3 additions and 2 deletions

View File

@ -25,6 +25,9 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
import os
import sys
import django.core.handlers.wsgi
from gunicorn.main import main

View File

@ -73,12 +73,10 @@ class TeeInput(object):
def read(self, length=None):
""" read """
print "la"
if not self.socket:
return self.tmp.read(length)
if length is None:
print "ici"
r = self.tmp.read() or ""
while True:
chunk = self._tee(CHUNK_SIZE)