Michael Bayer wrote:
Michael Bayer wrote:
it is quite simple to implement yourself, use a ConnectionProxy.
Ah, ok, didn't know about them :-)
Out of interest, is echo=True implemented as a ConnectionProxy?

its not.   CP is a little heavyhanded for just the built-in SQL logging.

How/where is it implemented?
All I'm ultimately looking for is to insert the following wherever that the SQL logging is currently done:

s = StringIO()
traceback.print_stack(file=s)
logging.info('Called from:'+s.getvalue())

I've added hooks to intercept all transactional events at a high level in r6641.

Cool, will that land in SA 0.6?

There are many, and some such as BEGIN PREPARED result in further statement 
executions as well.

Not sure what the latter half of this means...

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
           - http://www.simplistix.co.uk
-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.


Reply via email to