mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
Removed debug logging calls
This commit is contained in:
parent
611606d532
commit
3b4c0443e4
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user