logging - Catching Django Errors When Client Is Not A Web Browser? -


i'm building django web service called application. when throws exception, can't see django debug page, , can't because calling application doesn't behave web browser (and don't have control on application).

is there way redirect django error page a log file rather calling client, possibly via changing fastcgi config (i'm using lighty + fastcgi)? or maybe "dump file" config option or sort of logexceptiontofile() method within framework itself?

you might try creating custom exceptionmiddleware. change process_exception method log exception , request data somewhere.

here's example: http://www.peterbe.com/plog/who-was-logged-in-during-a-django-exception


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -