Mysqldb & stderr

jean-michel bain-cornu nospam at nospam.fr
Mon Oct 1 08:05:16 EDT 2007


Hi,
> developing a daemon (using python 2.4 and mysqldb 1.2.1_p2) we notes
> that mysqldb class write on stderr some warnings and error
> asyncronously (uhmmm.... it's good written? ;P ).
> 
> Someone knows how stop write on stderr (and stdout) on mysqldb?

I use warnings filter :
	...
	import warnings
	warnings.filterwarnings('ignore')
	import MySQLdb
	...
May be it can be helpful to you.
Regards,
jm



More information about the Python-list mailing list