From 766342a866156b020adc013a1a9707cdfffd9b64 Mon Sep 17 00:00:00 2001 From: Pedro Date: Sun, 26 Nov 2023 13:11:45 +0100 Subject: [PATCH] Fix Command log message --- modem/command.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modem/command.py b/modem/command.py index 001a5cdc..4efd50ed 100644 --- a/modem/command.py +++ b/modem/command.py @@ -21,7 +21,8 @@ class TxCommand(): pass def log_message(self): - return f"TX Command {self.get_name()}" + message = f"Running {self.get_name()}" + return message def build_frame(self): pass @@ -46,6 +47,6 @@ class TxCommand(): def run(self, event_queue: queue.Queue, tx_frame_queue: queue.Queue): self.emit_event(event_queue) - self.logger.info(self.log_message) + self.logger.info(self.log_message()) self.transmit(tx_frame_queue) pass