summaryrefslogtreecommitdiff
path: root/src/mailman/core
diff options
context:
space:
mode:
authorStephen A. Goss2011-08-23 16:07:11 -0700
committerStephen A. Goss2011-08-23 16:07:11 -0700
commit4da280bce9f02dc388f70353c7eede3da9f58794 (patch)
tree955bb0df0e97ad463249078cdea79d0322b599ab /src/mailman/core
parent0b45ed6886360ba858f4a11cb95a3d134fc580dc (diff)
parent35e4ca77838ac7bbeca3f8da6ea64a93a6e501d5 (diff)
downloadmailman-4da280bce9f02dc388f70353c7eede3da9f58794.tar.gz
mailman-4da280bce9f02dc388f70353c7eede3da9f58794.tar.zst
mailman-4da280bce9f02dc388f70353c7eede3da9f58794.zip
Diffstat (limited to 'src/mailman/core')
-rw-r--r--src/mailman/core/pipelines.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mailman/core/pipelines.py b/src/mailman/core/pipelines.py
index 15adca501..7efc8e329 100644
--- a/src/mailman/core/pipelines.py
+++ b/src/mailman/core/pipelines.py
@@ -26,6 +26,8 @@ __all__ = [
]
+import logging
+
from zope.interface import implements
from zope.interface.verify import verifyObject
@@ -35,6 +37,8 @@ from mailman.core.i18n import _
from mailman.interfaces.handler import IHandler
from mailman.interfaces.pipeline import IPipeline
+log = logging.getLogger('mailman.debug')
+
def process(mlist, msg, msgdata, pipeline_name='built-in'):
@@ -45,8 +49,11 @@ def process(mlist, msg, msgdata, pipeline_name='built-in'):
:param msgdata: The message metadata dictionary.
:param pipeline_name: The name of the pipeline to process through.
"""
+ message_id = msg.get('message-id', 'n/a')
pipeline = config.pipelines[pipeline_name]
for handler in pipeline:
+ log.debug('[pipeline] processing {0}: {1}'.format(
+ handler.name, message_id))
handler.process(mlist, msg, msgdata)