summaryrefslogtreecommitdiff
path: root/src/mailman/core/logging.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/core/logging.py')
-rw-r--r--src/mailman/core/logging.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman/core/logging.py b/src/mailman/core/logging.py
index 298923d3f..a7e8b2554 100644
--- a/src/mailman/core/logging.py
+++ b/src/mailman/core/logging.py
@@ -147,6 +147,10 @@ def initialize(propagate=None):
log = logging.getLogger('sqlalchemy')
_init_logger(propagate, sub_name, log, logger_config)
log = logging.getLogger('alembic')
+ elif sub_name == 'smtp':
+ log = logging.getLogger('mail.log')
+ _init_logger(propagate, sub_name, log, logger_config)
+ log = logging.getLogger('mailman.smtp')
else:
logger_name = 'mailman.' + sub_name
log = logging.getLogger(logger_name)