mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
merged davisp logging branch (from asenchi patch) + fix to
gunicorn_django
This commit is contained in:
parent
5c7447ee31
commit
7592d25331
@ -25,6 +25,9 @@
|
|||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
# OTHER DEALINGS IN THE SOFTWARE.
|
# OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
import django.core.handlers.wsgi
|
import django.core.handlers.wsgi
|
||||||
from gunicorn.main import main
|
from gunicorn.main import main
|
||||||
|
|
||||||
|
|||||||
@ -73,12 +73,10 @@ class TeeInput(object):
|
|||||||
|
|
||||||
def read(self, length=None):
|
def read(self, length=None):
|
||||||
""" read """
|
""" read """
|
||||||
print "la"
|
|
||||||
if not self.socket:
|
if not self.socket:
|
||||||
return self.tmp.read(length)
|
return self.tmp.read(length)
|
||||||
|
|
||||||
if length is None:
|
if length is None:
|
||||||
print "ici"
|
|
||||||
r = self.tmp.read() or ""
|
r = self.tmp.read() or ""
|
||||||
while True:
|
while True:
|
||||||
chunk = self._tee(CHUNK_SIZE)
|
chunk = self._tee(CHUNK_SIZE)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user