summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-01-14 07:54:18 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-01-14 23:52:31 +0000
commit6b040c6e06ed78e96b1f2141c0cc15ac65fb6425 (patch)
tree9cb42455d398cb949a2e37127d1ce296f2d84392
parentba28c3efc1b20141293b846ed79fa31312468ed1 (diff)
trx_toolkit/{ctrl,data}_if.py: add init log message
-rw-r--r--src/target/trx_toolkit/ctrl_if.py4
-rw-r--r--src/target/trx_toolkit/ctrl_if_trx.py1
-rw-r--r--src/target/trx_toolkit/data_if.py4
3 files changed, 8 insertions, 1 deletions
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 @@ import logging as log
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 @@ class CTRLInterfaceTRX(CTRLInterface):
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 udp_link import UDPLink
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