On Jan 16, 2010, at 6:18 AM, Chris Withers wrote: > Michael Bayer wrote: >>> [1] I'm not sure you could actually use exc_info=True, since no >>> exception will have been raised at this point, you just need a repr of >>> the current strack trace. >> when is a stack trace emitted ? > > Well, 'would be', not 'is' ;-) But anyway, at exactly the same time that > echo=True logs its SQL... > >> seems very much like something an external library should be doing. > > ...so I don't see how an external library could do that.
it is quite simple to implement yourself, use a ConnectionProxy. Its like a ten liner. Here's an example: http://techspot.zzzeek.org/?p=31 however ConnectionProxy doesn't currently have hooks for "commit" or "rollback". I would gladly add those.
-- 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.