summaryrefslogtreecommitdiff
path: root/src/mailman/core/logging.py
diff options
context:
space:
mode:
authorBarry Warsaw2014-12-29 17:50:07 -0500
committerBarry Warsaw2014-12-29 17:50:07 -0500
commitb7e3b4d7307713fa8edd73889b9c72fbfd11fdfe (patch)
tree095731100c065318f77b1685f8cdc821168d8b0c /src/mailman/core/logging.py
parent37e72b0a6aaefcb90bf7d9ef23fdf24c07979551 (diff)
downloadmailman-b7e3b4d7307713fa8edd73889b9c72fbfd11fdfe.tar.gz
mailman-b7e3b4d7307713fa8edd73889b9c72fbfd11fdfe.tar.zst
mailman-b7e3b4d7307713fa8edd73889b9c72fbfd11fdfe.zip
Back port from py3 branch:
# Explicitly prevent flufl.lock from propagating its log messages # to its root logger, i.e. the console.
Diffstat (limited to 'src/mailman/core/logging.py')
-rw-r--r--src/mailman/core/logging.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mailman/core/logging.py b/src/mailman/core/logging.py
index c9285af92..c5ce1a538 100644
--- a/src/mailman/core/logging.py
+++ b/src/mailman/core/logging.py
@@ -145,6 +145,9 @@ def initialize(propagate=None):
continue
if sub_name == 'locks':
log = logging.getLogger('flufl.lock')
+ # Explicitly prevent flufl.lock from propagating its log messages
+ # to its root logger, i.e. the console.
+ log.propagate = False
if sub_name == 'database':
# Set both the SQLAlchemy and Alembic logs to the mailman.database
# log configuration, essentially ignoring the alembic.cfg settings.