MySQLdb is really nice library for handling SQL connections. I found only one problem. It writes all warning messages directly to stdout. Is there any possibility to redirect it to standard python logger instead?
MySQLdb is really nice library for handling SQL connections. I found only one problem.
Share
Replace
warnings.showwarning()with a function that works as desired.