Skip to content

Commit cd37a64

Browse files
author
Galen Collins
committed
Fixes #46
1 parent d101b57 commit cd37a64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymodbus/transaction.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def execute(self, request):
6969
if not result and self.retry_on_empty:
7070
retries -= 1
7171
continue
72+
if _logger.isEnabledFor(logging.DEBUG):
73+
_logger.debug("recv: " + " ".join([hex(ord(x)) for x in result]))
7274
self.client.framer.processIncomingPacket(result, self.addTransaction)
7375
break;
7476
except socket.error, msg:
@@ -341,7 +343,6 @@ def processIncomingPacket(self, data, callback):
341343
:param data: The new packet data
342344
:param callback: The function to send results to
343345
'''
344-
_logger.debug(" ".join([hex(ord(x)) for x in data]))
345346
self.addToFrame(data)
346347
while self.isFrameReady():
347348
if self.checkFrame():

0 commit comments

Comments
 (0)