Fixed & improved tcpout error messages
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Fri, 25 May 2012 08:21:31 +0000 (08:21 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Fri, 25 May 2012 08:21:31 +0000 (08:21 +0000)
bin/inputs/tcpout.py

index e87879bd222edd01dfdcdf92ebafecc426a56914..a3435770959ef3e7ae2eb28e315d2a64a49f82e4 100644 (file)
@@ -33,12 +33,12 @@ class TcpOutChannel(Channel):
             self.sock.connect(address_out)
             logging.info("Connected to %s using tcp6", address_out)
         except socket.gaierror as err:
-            logging.error("Can't connet to %s: %s using tcp6", address_out, err)
+            logging.error("Can't connect to %s using tcp6: %s", address_out, err)
             self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
             try:
                 self.sock.connect(address_out)
             except socket.error as err:
-                logging.error("Can't connet to %s: %s using tcp4", address_out, err)
+                logging.error("Can't connect to %s using tcp4: %s", address_out, err)
                 raise
             logging.info("Connected to %s using tcp4", address_out)