Obscure MySQLdb question - duplicating a database handle

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Fri Sep 3 08:39:06 CEST 2010

In message <4c801218$0$1622$742ec2ed at 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 table for logging? It’s 
usually easier to write to text files for this purpose.

More information about the Python-list mailing list