summaryrefslogtreecommitdiffstats
path: root/src/osmo_gsm_tester/osmo_ctrl.py
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-08-23 10:48:05 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2017-08-23 10:48:07 +0200
commit66c96c3c8ee54f3627defc58f0cd1ed8a6ac5386 (patch)
tree8b1c4db004c52d8db9d1d6f76b2743ae11d4892d /src/osmo_gsm_tester/osmo_ctrl.py
parent8d7a2e343b405fd9e99fa22d9d0b7fe3550f3be3 (diff)
ctrl: Add dbg log to print received data
This is useful to see for instance the returned values from NITB when asked for active subscribers. Change-Id: I5c616646da360457930888b54d9019b76f05fe2f
Diffstat (limited to 'src/osmo_gsm_tester/osmo_ctrl.py')
-rw-r--r--src/osmo_gsm_tester/osmo_ctrl.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osmo_gsm_tester/osmo_ctrl.py b/src/osmo_gsm_tester/osmo_ctrl.py
index b5a947f..be27b75 100644
--- a/src/osmo_gsm_tester/osmo_ctrl.py
+++ b/src/osmo_gsm_tester/osmo_ctrl.py
@@ -67,7 +67,9 @@ class OsmoCtrl(log.Origin):
self.sck.send(data)
def receive(self, length = 1024):
- return self.sck.recv(length)
+ data = self.sck.recv(length)
+ self.dbg('Receiving', data=data)
+ return data
def do_set(self, var, value, id=0):
setmsg = "SET %s %s %s" %(id, var, value)