summaryrefslogtreecommitdiff
path: root/src/mailman/testing/layers.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/testing/layers.py')
-rw-r--r--src/mailman/testing/layers.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mailman/testing/layers.py b/src/mailman/testing/layers.py
index 3328efefc..d19d50c04 100644
--- a/src/mailman/testing/layers.py
+++ b/src/mailman/testing/layers.py
@@ -158,8 +158,11 @@ class ConfigLayer(MockAndMonkeyLayer):
get_handler(sub_name).reopen(path)
log.setLevel(logging.DEBUG)
# If stderr debugging is enabled, make sure subprocesses are also
- # more verbose.
- if cls.stderr:
+ # more verbose. In general though, we still don't want SQLAlchemy
+ # debugging because it's just too verbose. Unfortunately, if you
+ # do want that level of debugging you currently have to manually
+ # modify this conditional.
+ if cls.stderr and sub_name != 'database':
test_config += expand(dedent("""
[logging.$name]
propagate: yes