In message <4c801218$0$1622$742ec...@news.sonic.net>, John Nagle wrote:
> The problem is that I want errorlog to commit its message to
> the table used for error logging, but don't want to commit
> whatever the caller was doing - that may well revert.
Any particular reason you’re using a database
John Nagle writes:
> I have a system which does error logging to its database:
>
> db = MySQLdb.connect(...) # get database connection
> ...
> errorlog(db, "Message")
>
> The problem is that I want errorlog to commit its message to
> the table used for error logging, but don't
I have a system which does error logging to its database:
db = MySQLdb.connect(...) # get database connection
...
errorlog(db, "Message")
The problem is that I want errorlog to commit its message to
the table used for error logging, but don't want to commit
whatever the