From 7592d25331ae945f3a9dcd9e6ea7897b659bc663 Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Mon, 18 Jan 2010 00:35:47 +0100 Subject: [PATCH] merged davisp logging branch (from asenchi patch) + fix to gunicorn_django --- bin/gunicorn_django | 3 +++ gunicorn/http/tee.py | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/gunicorn_django b/bin/gunicorn_django index dda54c43..f6219fe2 100755 --- a/bin/gunicorn_django +++ b/bin/gunicorn_django @@ -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 diff --git a/gunicorn/http/tee.py b/gunicorn/http/tee.py index b344cbbc..cd56c7bd 100644 --- a/gunicorn/http/tee.py +++ b/gunicorn/http/tee.py @@ -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)