On Wed, May 19, 2010 at 9:10 AM, Kenneth Loafman
<kenneth.loaf...@gmail.com>wrote:

> The subject says it all, how do you turn off the SQL logging to memory
> but leave DEBUG on?  I need to test a daemon mode Django process in
> DEBUG mode, but the SQL collection in DEBUG makes it appear that there
> is a memory leak.
>

I would probably approach this need by periodically resetting the queries
rather than attempting to figure out how to stop the logging entirely when
DEBUG is True. django.db has a function reset_queries that it uses to reset
the query history at the beginning of each request.

Karen
-- 
http://tracey.org/kmt/

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

Reply via email to