summaryrefslogtreecommitdiffstats
path: root/Under-Testing/Server-Code-New/ControllerClass.py
diff options
context:
space:
mode:
authorTriatmoko2011-11-16 22:11:43 +0100
committerTriatmoko2011-11-16 22:11:43 +0100
commit953da9164a2da44e35c2a2941ec8357f44768f68 (patch)
treeb13aa3f9eab041986bcd89dcb9d32cd9ee8f3894 /Under-Testing/Server-Code-New/ControllerClass.py
parentbug on smart test (diff)
downloadgsm-selftest-953da9164a2da44e35c2a2941ec8357f44768f68.tar.gz
gsm-selftest-953da9164a2da44e35c2a2941ec8357f44768f68.tar.xz
gsm-selftest-953da9164a2da44e35c2a2941ec8357f44768f68.zip
trying find SSH bug for new code
Diffstat (limited to 'Under-Testing/Server-Code-New/ControllerClass.py')
-rw-r--r--Under-Testing/Server-Code-New/ControllerClass.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Under-Testing/Server-Code-New/ControllerClass.py b/Under-Testing/Server-Code-New/ControllerClass.py
index df89ac5..c5bc29a 100644
--- a/Under-Testing/Server-Code-New/ControllerClass.py
+++ b/Under-Testing/Server-Code-New/ControllerClass.py
@@ -47,6 +47,7 @@ class controller:
sleep(5)
self.callerGreeting()
+ logger.logEvent('Status Handler Connection :'+self.connected)
if self.connected == 'OK':
self.caller.sendData('CALLER|'+self.destNo)
@@ -66,8 +67,9 @@ class controller:
else:
#waiting 2 seconds if doesnt use ssh connection until handler ready
sleep(5)
- self.receiverGreeting()
-
+ self.receiverGreeting()
+
+ logger.logEvent('Status Handler Connection :'+self.connected)
if self.connected == 'OK':
self.receiver.sendData('RECEIVER')
@@ -209,6 +211,7 @@ class controller:
#open SSH tunneling
self.boxCaller = SSHTunnelBoxClass.SSHTunneling(self.portCaller, 50008, self.server, self.username, self.password)
status = self.boxCaller.startTunneling()
+ logger.logEvent('SSH Status :'+str(status))
#check whether the SSH tunneling succes or not, 0 is failed!
if status!= 0: