Philipp Hörist pushed to branch master at gajim / gajim


Commits:
f86c7212 by Philipp Hörist at 2024-06-13T10:06:41+02:00
refactor: ArchiveStorage: Improve logging messages

- - - - -


1 changed file:

- gajim/common/storage/archive/storage.py


Changes:

=====================================
gajim/common/storage/archive/storage.py
=====================================
@@ -355,7 +355,8 @@ def get_message_with_id(
         if len(result) == 1:
             return result[0]
 
-        self._log.warning('Found more than one message with message id %s', 
message_id)
+        self._log.warning(
+            'Found %s messages with message id %s', len(result), message_id)
         return None
 
     @with_session
@@ -381,7 +382,8 @@ def get_message_with_stanza_id(
         if len(result) == 1:
             return result[0]
 
-        self._log.warning('Found more than one message with stanza id %s', 
stanza_id)
+        self._log.warning(
+            'Found %s messages with stanza id %s', len(result), stanza_id)
         return None
 
     @with_session



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/f86c7212c34345304bda293a5d235273922720fe

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/f86c7212c34345304bda293a5d235273922720fe
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to