Monday, May 23, 2011

Re: How to get hold of the failed db query

Thanks Michael.

I have been looking into the log today. The problem is however, that the database server is a different computer which I don't have direct access to. It requires emailing another guy every time I need the log.

I think that django should be able to tell when one query fails, right? And so report that error, instead of pretending there is no problem.

Anyway, can Django be set up to show the initial problem(s)?

Thomas


On Mon, May 23, 2011 at 8:32 AM, Michael Radziej <mir@spieleck.de> wrote:
Hi Thomas,

there are multiple ways to catch the query. I suggest to enable query
logging in  your postgres server for failed statements. That's a good
idea, anyway.

See the "When to log" and "What to log" settings in the postgresql.conf
file.


Kind regards

Michael

--


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment