summaryrefslogtreecommitdiffstats
path: root/wallace/module_resources.py
diff options
context:
space:
mode:
authorLiutauras Adomaitis <adomaitis@kolabsys.com>2018-06-04 16:44:03 +0300
committerLiutauras Adomaitis <adomaitis@kolabsys.com>2018-06-15 14:06:12 +0300
commit5ec8788dd436b342f160ad3dfcca634e68e65112 (patch)
tree5922210d7c6dda9675802dce616e7a48bd0bac25 /wallace/module_resources.py
parent46f61ab9984e23332477d39edbf303291e04d2ca (diff)
downloadpykolab-5ec8788dd436b342f160ad3dfcca634e68e65112.tar.gz
nother attempt to add more logging and fix wallace messages not being delivered and staying in spool directory
Summary: Adding more logs that should show why _sendmail function does not start a "while" delivery loop and unliking file does not happen. Also some code polishing. Test Plan: none Reviewers: machniak, vanmeeuwen Reviewed By: machniak Subscribers: petersen Differential Revision: https://git.kolab.org/D599
Diffstat (limited to 'wallace/module_resources.py')
-rw-r--r--wallace/module_resources.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wallace/module_resources.py b/wallace/module_resources.py
index f5f8382..962e11a 100644
--- a/wallace/module_resources.py
+++ b/wallace/module_resources.py
@@ -1355,7 +1355,8 @@ def send_owner_notification(resource, owner, itip_event, success=True):
resource['cn'], participant_status_label(status) if success else _('failed')
))
- modules._sendmail(resource['mail'], owner['mail'], msg.as_string())
+ result = modules._sendmail(resource['mail'], owner['mail'], msg.as_string())
+ log.debug(_("Owner notification was sent successfully: %r") % result, level=8)
def owner_notification_text(resource, owner, event, success):
organizer = event.get_organizer()