From e47230f139b07af94e8ef4a08260ad7fd12900a1 Mon Sep 17 00:00:00 2001 From: JJTech0130 Date: Wed, 26 Jul 2023 20:23:45 -0400 Subject: [PATCH] remove very annoying logs --- demo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/demo.py b/demo.py index 4238d27..12ee930 100644 --- a/demo.py +++ b/demo.py @@ -169,14 +169,14 @@ def decrypt(payload, sender_token, rsa_key: rsa.RSAPrivateKey = user_rsa_key): signature_len = payload.read(1)[0] signature = payload.read(signature_len) - logging.info(f"Signature: {signature}") - logging.info(f"Decrypted: {decrypted}") + #logging.info(f"Signature: {signature}") + #logging.info(f"Decrypted: {decrypted}") # Verify the signature sender = decrypted["p"][-1] # Lookup the public key for the sender lookup = user.lookup([sender])[sender] - logging.debug(f"Lookup: {lookup}") + #logging.debug(f"Lookup: {lookup}") sender = None for identity in lookup['identities']: if identity['push-token'] == sender_token: @@ -222,7 +222,7 @@ while True: conn._send_ack(id) resp_body = plistlib.loads(resp_body) # logging.info(f"Got response: {resp_body}") - logging.debug(f"Got response: {resp_body}") + logging.debug(f"Got message: {resp_body}") token = resp_body['t'] payload = resp_body["P"] payload = decrypt(payload, token)