Index: trunk/extensions/XMLRC/bridge/udp2xmpp.py |
— | — | @@ -304,9 +304,9 @@ |
305 | 305 | for sock, conn in connection_sockets.items(): |
306 | 306 | if ( not test and not conn.is_connected() ) or ( test and not conn.test_connection() ): |
307 | 307 | if test: |
308 | | - self.warn( "is_connected for connection %s returned false (%s)" % (repr(conn), context), *exec_info ); |
| 308 | + self.warn( "test_connection for connection %s returned false (%s)" % (repr(conn), context), *exec_info ); |
309 | 309 | else: |
310 | | - self.warn( "test_connection for connection %s failed (%s)" % (repr(conn), context), *exec_info ); |
| 310 | + self.warn( "is_connected for connection %s failed (%s)" % (repr(conn), context), *exec_info ); |
311 | 311 | |
312 | 312 | broken.add(conn) |
313 | 313 | remove.add(sock) |
Index: trunk/extensions/XMLRC/client/rcclient.py |
— | — | @@ -168,7 +168,8 @@ |
169 | 169 | self.warn("connection lost, reconnecting...") |
170 | 170 | |
171 | 171 | if self.xmpp.reconnectAndReauth(): |
172 | | - self.warn("re-connect successful.") |
| 172 | + sockets = ( self.xmpp.Connection._sock, ) |
| 173 | + self.info("re-connect successful.") |
173 | 174 | self.on_connect() |
174 | 175 | |
175 | 176 | except Exception, e: |