mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 10:53:44 +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>
|
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.
|
* License migration: psycopg2 is now LGPL3 + OpenSSL exception.
|
||||||
|
|
||||||
* TODO file was never updated so lets remove it.
|
* TODO file was never updated so lets remove it.
|
||||||
|
|
|
@ -169,15 +169,15 @@ class DB(TM, dbi_db.DB):
|
||||||
c.execute(qs)
|
c.execute(qs)
|
||||||
except TransactionRollbackError:
|
except TransactionRollbackError:
|
||||||
# Ha, here we have to look like we are the ZODB raising conflict errrors, raising ZPublisher.Publish.Retry just doesn't work
|
# 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")
|
raise ConflictError("TransactionRollbackError from psycopg2")
|
||||||
except psycopg2.OperationalError:
|
except psycopg2.OperationalError:
|
||||||
logging.exception("Operational error on connection, closing it.")
|
#logging.exception("Operational error on connection, closing it.")
|
||||||
try:
|
try:
|
||||||
# Only close our connection
|
# Only close our connection
|
||||||
self.putconn(True)
|
self.putconn(True)
|
||||||
except:
|
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
|
pass
|
||||||
if c.description is not None:
|
if c.description is not None:
|
||||||
nselects += 1
|
nselects += 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user