From 179a32ce77aef30012e992bb12ac97d30a82dadf Mon Sep 17 00:00:00 2001 From: Lei PAN Date: Thu, 17 Mar 2022 13:36:05 +0100 Subject: [PATCH] add logs --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index f5983fe..d91e973 100644 --- a/main.py +++ b/main.py @@ -128,6 +128,7 @@ def init_modems() -> list: def on_message_received(ch, method, properties, body): + print(str(body)) print(" [x] Received {} {}".format(body, datetime.datetime.now())) # parse the received message result = ReserveResultPojo.from_json(body) @@ -198,7 +199,7 @@ def start_book(): if modem.contact: logger.info("contact found for this ccid") signal = modem.modem.signalStrength - logger.info("signal for this sim: "+str(signal)) + logger.info("信号强度: "+str(signal)) commandor.start_page(modem.contact) start_to_handle_sms(modem) except Exception as error: