From 1e04d58e5a7647a301d682d8e4c604c6dcf92d33 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Thu, 10 Oct 2013 23:44:20 +0200 Subject: [PATCH] new msg output with hex id --- linspector/services/tcpconnect.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/linspector/services/tcpconnect.py b/linspector/services/tcpconnect.py index 2bfcf70..29744bb 100644 --- a/linspector/services/tcpconnect.py +++ b/linspector/services/tcpconnect.py @@ -44,21 +44,21 @@ class TcpconnectService(Service): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) except socket.error, msg: jobInfo.set_errorcode(2) - jobInfo.set_message("[tcpconnect: " + jobInfo.jobHex + "] Could not create socket to host: " + jobInfo.get_host() + - " on port: " + str(self.port) + " (" + str(msg) + ")") + jobInfo.set_message("[tcpconnect: " + jobInfo.jobHex + "] Could not create socket to host: " + + jobInfo.get_host() + " on port: " + str(self.port) + " (" + str(msg) + ")") try: sock.connect((jobInfo.get_host(), self.port)) except socket.error, msg: jobInfo.set_errorcode(1) - jobInfo.set_message("[tcpconnect] Could not establish connection to host: " + jobInfo.get_host() + - " on port: " + str(self.port) + " (" + str(msg) + ")") + jobInfo.set_message("[tcpconnect: " + jobInfo.jobHex + "] Could not establish connection to host: " + + jobInfo.get_host() + " on port: " + str(self.port) + " (" + str(msg) + ")") if jobInfo.get_errorcode() == -1: jobInfo.set_execution_successful(True) jobInfo.set_errorcode(0) - jobInfo.set_message("[tcpconnect] Connection successful established to host: " + jobInfo.get_host() + - " on port: " + str(self.port)) + jobInfo.set_message("[tcpconnect: " + jobInfo.jobHex + "] Connection successful established to host: " + + jobInfo.get_host() + " on port: " + str(self.port)) sock.close()