2. when I try this on Mac OS X 10.8.2, I get errors like this for log
messages 2kb and bigger:

Traceback (most recent call last):
   File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/logging/__init__.py",
line 797, in emit
     stream.write(fs % msg)
IOError: [Errno 40] Message too long


This is from the python logging module, not from uWSGI



even when the log message is just 5354 bytes and I run with
--log-master-bufsize 1048576.
you are tuning uWSGI buffers, but the problem here is python logging, and
honestly it is the first time i see that error :)

Maybe someone else has an idea...


I don't have a 10.8.2 version of Max OS X, but because this is Python you can edit the files (maybe make a backup of the Python.framework dir first) and debug that way. Maybe Apple (or someone else) put a limit on cStringIO or whatever class is being used for write( ). However, in my experience, the issue is generally with my code (but I didn't write any of this).

--Jeff
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to