Vadim Yanitskiy has uploaded this change for review. ( 
https://gerrit.osmocom.org/12547


Change subject: trx_toolkit/{ctrl,data}_if.py: add init log message
......................................................................

trx_toolkit/{ctrl,data}_if.py: add init log message

Change-Id: I1a2caf6999ed4f33df76328e48ff5076d166d9fe
---
M src/target/trx_toolkit/ctrl_if.py
M src/target/trx_toolkit/ctrl_if_trx.py
M src/target/trx_toolkit/data_if.py
3 files changed, 8 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/47/12547/1

diff --git a/src/target/trx_toolkit/ctrl_if.py 
b/src/target/trx_toolkit/ctrl_if.py
index 45bfa2b..a1c19f0 100644
--- a/src/target/trx_toolkit/ctrl_if.py
+++ b/src/target/trx_toolkit/ctrl_if.py
@@ -27,6 +27,10 @@
 from udp_link import UDPLink

 class CTRLInterface(UDPLink):
+       def __init__(self, *udp_link_args):
+               UDPLink.__init__(self, *udp_link_args)
+               log.debug("Init CTRL interface (%s)" % self.desc_link())
+
        def handle_rx(self):
                # Read data from socket
                data, remote = self.sock.recvfrom(128)
diff --git a/src/target/trx_toolkit/ctrl_if_trx.py 
b/src/target/trx_toolkit/ctrl_if_trx.py
index 0d4935d..26a844f 100644
--- a/src/target/trx_toolkit/ctrl_if_trx.py
+++ b/src/target/trx_toolkit/ctrl_if_trx.py
@@ -46,7 +46,6 @@

        def __init__(self, trx, *udp_link_args):
                CTRLInterface.__init__(self, *udp_link_args)
-               log.info("Init CTRL interface (%s)" % self.desc_link())

                # Link with Transceiver instance we belong to
                self.trx = trx
diff --git a/src/target/trx_toolkit/data_if.py 
b/src/target/trx_toolkit/data_if.py
index a773c04..b1ba1e5 100644
--- a/src/target/trx_toolkit/data_if.py
+++ b/src/target/trx_toolkit/data_if.py
@@ -28,6 +28,10 @@
 from data_msg import *

 class DATAInterface(UDPLink):
+       def __init__(self, *udp_link_args):
+               UDPLink.__init__(self, *udp_link_args)
+               log.debug("Init DATA interface (%s)" % self.desc_link())
+
        def recv_raw_data(self):
                data, _ = self.sock.recvfrom(512)
                return data

--
To view, visit https://gerrit.osmocom.org/12547
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1a2caf6999ed4f33df76328e48ff5076d166d9fe
Gerrit-Change-Number: 12547
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilira...@gmail.com>

Reply via email to