summaryrefslogtreecommitdiff
path: root/src/mailman/core/logging.py
diff options
context:
space:
mode:
authorBarry Warsaw2014-12-21 16:54:38 -0500
committerBarry Warsaw2014-12-21 16:54:38 -0500
commit9d1b25195e011710a5e0a95417703aaf6539a7a8 (patch)
tree62056db18af7e0318cd36a9044bc8469a9aa5b0d /src/mailman/core/logging.py
parent6043388ba07db8e78faad962ba8cfdf5f43bda14 (diff)
downloadmailman-9d1b25195e011710a5e0a95417703aaf6539a7a8.tar.gz
mailman-9d1b25195e011710a5e0a95417703aaf6539a7a8.tar.zst
mailman-9d1b25195e011710a5e0a95417703aaf6539a7a8.zip
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.