Removed debug logging calls

This commit is contained in:
Federico Di Gregorio 2010-02-13 00:15:39 +01:00
parent 611606d532
commit 3b4c0443e4
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,10 @@
2010-02-10 Federico Di Gregorio <fog@initd.org>
* ZPsycopgDA/db.py: removed logging debug calls; psycopg does
not depend on the logger module.
2010-02-12 Federico Di Gregorio <fog@initd.org>
* License migration: psycopg2 is now LGPL3 + OpenSSL exception.
* TODO file was never updated so lets remove it.

View File

@ -169,15 +169,15 @@ class DB(TM, dbi_db.DB):
c.execute(qs)
except TransactionRollbackError:
# Ha, here we have to look like we are the ZODB raising conflict errrors, raising ZPublisher.Publish.Retry just doesn't work
logging.debug("Serialization Error, retrying transaction", exc_info=True)
#logging.debug("Serialization Error, retrying transaction", exc_info=True)
raise ConflictError("TransactionRollbackError from psycopg2")
except psycopg2.OperationalError:
logging.exception("Operational error on connection, closing it.")
#logging.exception("Operational error on connection, closing it.")
try:
# Only close our connection
self.putconn(True)
except:
logging.debug("Something went wrong when we tried to close the pool", exc_info=True)
#logging.debug("Something went wrong when we tried to close the pool", exc_info=True)
pass
if c.description is not None:
nselects += 1