[source] log attempt to reconnect using warning level. Also, don't relog failed sql (already logged) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 31 Mar 2010 12:51:35 +0200
branchstable
changeset 5107 3694bd379513
parent 5106 782ff24a7e46
child 5108 8495d580a580
[source] log attempt to reconnect using warning level. Also, don't relog failed sql (already logged)
server/sources/native.py
--- a/server/sources/native.py	Wed Mar 31 12:33:47 2010 +0200
+++ b/server/sources/native.py	Wed Mar 31 12:51:35 2010 +0200
@@ -410,7 +410,7 @@
             cursor = self.doexec(session, sql, args)
         except (self.OperationalError, self.InterfaceError):
             # FIXME: better detection of deconnection pb
-            self.info("request failed '%s' ... retry with a new cursor", sql)
+            self.warning("trying to reconnect")
             session.pool.reconnect(self)
             cursor = self.doexec(session, sql, args)
         results = self.process_result(cursor, cbs)