author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 14 Jun 2011 13:43:36 +0200 | |
branch | stable |
changeset 7499 | 96412cfc28e2 |
parent 7498 | dc823b9ce74b |
child 7500 | cb0f4da64e86 |
--- a/server/sources/pyrorql.py Tue Jun 14 11:54:41 2011 +0200 +++ b/server/sources/pyrorql.py Tue Jun 14 13:43:36 2011 +0200 @@ -312,9 +312,8 @@ def get_connection(self): try: return self._get_connection() - except (ConnectionError, PyroError): - self.critical("can't get connection to source %s", self.uri, - exc_info=1) + except (ConnectionError, PyroError), ex: + self.critical("can't get connection to source %s: %s", self.uri, ex) return ConnectionWrapper() def check_connection(self, cnx):