On 02/01/2012 10:30 AM, Daniel Moisset wrote:
On Tue, Jan 31, 2012 at 8:34 PM, josharian<joshar...@gmail.com>  wrote:
Hi all,

We're using connection.queries to log all sql executed during
development. I find myself wishing that in addition to 'sql' and
'time', there was a 'traceback' entry, so that troublesome/mysterious
queries could quickly be tracked back to their origins.

Adding it is a pretty small patch -- an `import traceback` and a
couple of `'traceback': traceback.extract_stack(),`s. My question is:
Is there a better way to get at this data currently? Is there any
interest in such a patch?

Thanks,
Josh

Using django-debug-toolbar provides that functionality, without having
to modify the django core

D.

i use __exception__ value inside pdb... OK now thats way OT... :-)

Cheers,
E

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

Reply via email to