فهرست منبع

Improve logging

Brendan Abolivier 4 سال پیش
والد
کامیت
a097ccd555
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      sydent/threepid/bind.py

+ 7 - 1
sydent/threepid/bind.py

@@ -130,9 +130,15 @@ class ThreepidBinder:
                 try:
                     joinTokenStore = JoinTokenStore(self.sydent)
                     joinTokenStore.deleteTokens(assoc["medium"], assoc["address"])
+                    logger.info(
+                        "Successfully deleted invite for %s from the store",
+                        assoc["address"],
+                    )
                 except Exception as e:
                     logger.error(
-                        "Couldn't remove invite for % from the store: %s", mxid, e,
+                        "Couldn't remove invite for % from the store: %s",
+                        assoc["address"],
+                        e,
                     )
 
     def _notifyErrback(self, assoc, attempt, error):