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

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -