This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 41056532fbdc97edc4b3b5d74e84a619ad2cd776
Author: Dave Brondsema <dbronds...@slashdotmedia.com>
AuthorDate: Mon Nov 29 16:38:41 2021 +0000

    Include the incoming mail task id in logging
---
 Allura/allura/command/smtp_server.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Allura/allura/command/smtp_server.py 
b/Allura/allura/command/smtp_server.py
index c3d3c1b..6819c96 100644
--- a/Allura/allura/command/smtp_server.py
+++ b/Allura/allura/command/smtp_server.py
@@ -56,9 +56,9 @@ class MailServer(smtpd.SMTPServer):
         try:
             base.log.info('Msg Received from %s for %s', mailfrom, rcpttos)
             base.log.info(' (%d bytes)', len(data))
-            allura.tasks.mail_tasks.route_email.post(
+            task = allura.tasks.mail_tasks.route_email.post(
                 peer=peer, mailfrom=mailfrom, rcpttos=rcpttos,
                 data=h.really_unicode(data))
-            base.log.info('Msg passed along')
+            base.log.info(f'Msg passed along as task {task._id}')
         except Exception:
             base.log.exception('Error handling msg')

Reply via email to