summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/mail
diff options
context:
space:
mode:
authorDenis Costa <deniscostadsc@gmail.com>2016-10-19 14:46:05 -0200
committerKali Kaneko (leap communications) <kali@leap.se>2016-10-19 16:55:50 -0400
commit4cee83f733238e5ebed6b8083158c6df3ad98f54 (patch)
tree4bec6bcd47e5c555663a7c14e72814bad84bdcac /src/leap/bitmask/mail
parent0329b242c851ea1f05e795102638b01bbac7c231 (diff)
[bug] Fix warning logging.
Following Twisted documentation, I found out that the warning method doesn't exist on logger class. That class has warn method instead. And I got a error because of that. https://twistedmatrix.com/documents/16.4.1/api/twisted.logger.Logger.html
Diffstat (limited to 'src/leap/bitmask/mail')
-rw-r--r--src/leap/bitmask/mail/adaptors/soledad.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/bitmask/mail/adaptors/soledad.py b/src/leap/bitmask/mail/adaptors/soledad.py
index 665cef23..cd6c42f8 100644
--- a/src/leap/bitmask/mail/adaptors/soledad.py
+++ b/src/leap/bitmask/mail/adaptors/soledad.py
@@ -505,7 +505,7 @@ class MessageWrapper(object):
for (key, doc) in cdocs.items()])
for doc_id, cdoc in zip(self.mdoc.cdocs, self.cdocs.values()):
if cdoc.raw == "":
- logger.warning("Empty raw field in cdoc %s" % doc_id)
+ logger.warn("Empty raw field in cdoc %s" % doc_id)
cdoc.set_future_doc_id(doc_id)
def create(self, store, notify_just_mdoc=False, pending_inserts_dict=None):
@@ -1126,7 +1126,7 @@ class SoledadMailAdaptor(SoledadIndexMixin):
def get_mdoc_id(hdoc):
if not hdoc:
- logger.warning("Could not find a HDOC with MSGID %s" % msgid)
+ logger.warn("Could not find a HDOC with MSGID %s" % msgid)
return None
hdoc = hdoc[0]
mdoc_id = hdoc.doc_id.replace("H-", "M-%s-" % uuid)