From: Dave C. <dj...@ob...> - 2004-06-23 17:48:42
|
Skip Montanaro wrote: > Dave> Can you try doing something like the following: > > Dave> import Sybase > > Dave> Sybase.set_debug(open('debug.log', 'w')) > Dave> : > Dave> conn = Sybase.Connection(..., debug=1) > Dave> : > > Dave, > > Thanks for the response. Alas, there is no debug arg to the Connection > class constructor. (I'm using 0.36.) With just the set_debug() call > nothing turns up in debug.log. Is the debug argument something that's only > available from CVS? Ooops. I was confusing the Sybase module with another one of my modules... Should have checked the code. Try this: import Sybase Sybase._ctx.debug = 1 Sybase.set_debug(open('debug.log', 'w')) : - Dave -- http://www.object-craft.com.au |