changeset 82a47f7226a5 in /home/hg/repos/gajim-plugins

author: lovetox <[email protected]>
branches: 
details:gajim-plugins?cmd=changeset;node=82a47f7226a5
description: Remove and change log messages

        Remove some log messages which clutter the debug log and
        became of low interest because the code works well

diffstat:

 omemo/omemo/state.py |  15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diffs (54 lines):

diff -r f8003ec968f4 -r 82a47f7226a5 omemo/omemo/state.py
--- a/omemo/omemo/state.py      Tue Jun 14 16:29:04 2016 +0200
+++ b/omemo/omemo/state.py      Tue Jun 14 18:02:47 2016 +0200
@@ -62,7 +62,7 @@
             if jid != own_jid:
                 self.add_device(jid, device_id)
 
-        log.debug(self.own_jid + ': devices after boot:' +
+        log.debug(self.own_jid + ': Roster devices after boot:' +
                   str(self.device_ids))
 
     def build_session(self, recipient_id, device_id, bundle_dict):
@@ -203,7 +203,7 @@
         else:
             self.add_device(sender_jid, sid)
 
-        log.debug("Decrypted msg => " + result)
+        log.debug("Decrypted Message => " + result)
         return result
 
     def create_msg(self, from_jid, jid, plaintext):
@@ -253,8 +253,7 @@
                   'iv': iv,
                   'payload': payload}
 
-        log.debug('encrypted message')
-        log.debug(result)
+        log.debug('Finished encrypting message')
         return result
 
     def isTrusted(self, cipher):
@@ -340,10 +339,10 @@
         sessionCipher = self.get_session_cipher(recipient_id, device_id)
         if self.isTrusted(sessionCipher) != UNTRUSTED:
             key = sessionCipher.decryptPkmsg(preKeyWhisperMessage)
-            log.debug('PreKeyWhisperMessage => ' + str(key))
             return key
         else:
-            raise Exception("Received PreKeyWhisperMessage from Untrusted 
Fingerprint!")
+            raise Exception("Received PreKeyWhisperMessage "
+                            "from Untrusted Fingerprint!")
 
     def handleWhisperMessage(self, recipient_id, device_id, key):
         whisperMessage = WhisperMessage(serialized=key)
@@ -351,7 +350,7 @@
         if self.isTrusted(sessionCipher) == TRUSTED or \
                 self.isTrusted(sessionCipher) == UNDECIDED:
             key = sessionCipher.decryptMsg(whisperMessage)
-            log.debug('WhisperMessage => ' + str(key))
             return key
         else:
-            raise Exception("Received WhisperMessage from Untrusted 
Fingerprint!")
+            raise Exception("Received WhisperMessage "
+                            "from Untrusted Fingerprint!")
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to