I have seen a couple of tweets asking for where uWSGI logs the Django errors.

Until Django 1.2.3, when you set DEBUG to false you will receive errors
only via mail. You can hack a bit using a middleware

http://docs.djangoproject.com/en/dev/topics/http/middleware/#process-exception


On Django 1.3 a new (and i have to say: very good) logging system has been
added. You can now log all the errors (even with DEBUG=False) to the uWSGI
logfile adding a new log handler in your settings.py:


        'console': {
            'level':'DEBUG',
            'class':'logging.StreamHandler',
        },

http://docs.djangoproject.com/en/1.3/topics/logging/

I hope this can be useful


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

Reply via email to