Skip to content

Commit ccd0e21

Browse files
committed
Remove debug output. Use string interpolation more.
1 parent c56854c commit ccd0e21

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

openlcb/canbus/canlink.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,9 +707,8 @@ def handleReceivedData(self, frame: CanFrame):
707707
sourceID = NodeID(self.nextInternallyAssignedNodeID)
708708
self.nextInternallyAssignedNodeID += 1
709709
logger.warning(
710-
"message frame {} from unknown source alias: {},"
711-
" continue with created ID {}"
712-
.format(frame, unmapped, sourceID))
710+
f"message frame {frame} from unknown source alias:"
711+
f" {unmapped}, continue with created ID {sourceID}")
713712

714713
# register that internally-generated nodeID-alias association
715714
self.aliasToNodeID[frame.header & 0xFFF] = sourceID

openlcb/memorymanager.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,6 @@ def setSlice(self, space: Union[MemorySpace, int], address: int,
253253
segment.setSlice(address, data, size=size)
254254
if callbackVar is None:
255255
callbackVar = self.getWatchVar(space, address)
256-
if callbackVar is not None:
257-
print(f"[setSlice] getWatchVar {callbackVar.className}")
258-
else:
259-
print(f"[setSlice] getWatchVar (None)")
260-
else:
261-
print(f"[setSlice] callbackVar {callbackVar.className}")
262256
if callbackVar is not None:
263257
callbackVar.setData(data)
264258
self.fireWriteListeners(callbackVar)

0 commit comments

Comments
 (0)