From ebeb100b396bea57753ee5a8ead5b51dcdc412f3 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 14 2015 19:02:49 +0000 Subject: Log if the comment was correctly added or not --- diff --git a/milters/comment_email_milter.py b/milters/comment_email_milter.py index e8fca1e..2e33385 100644 --- a/milters/comment_email_milter.py +++ b/milters/comment_email_milter.py @@ -180,7 +180,9 @@ class PagureMilter(Milter.Base): url = 'http://localhost%s/pv/ticket/comment/' % url req = requests.put(url, data=data) if req.status_code == 200: + self.log('Comment added') return Milter.ACCEPT + self.log('Could not add the comment to pagure') return Milter.CONTINUE def handle_request_email(self, emailobj, msg_id):