summary refs log tree commit diff
path: root/scripts-dev
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2022-07-05 10:46:20 +0100
committerGitHub <noreply@github.com>2022-07-05 09:46:20 +0000
commit65e675504fe060e5e99e145be450fe4d492f404f (patch)
tree63eba46476ae5e0419c84266b322fa56f9a25452 /scripts-dev
parentAdd missing links to config options (#13166) (diff)
downloadsynapse-65e675504fe060e5e99e145be450fe4d492f404f.tar.xz
Add the ability to set the log level using the `SYNAPSE_TEST_LOG_LEVEL` environment when using `complement.sh`. (#13152)
Diffstat (limited to '')
-rwxr-xr-xscripts-dev/complement.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts-dev/complement.sh b/scripts-dev/complement.sh
index 8448d49e26..705243ca9b 100755
--- a/scripts-dev/complement.sh
+++ b/scripts-dev/complement.sh
@@ -145,6 +145,18 @@ else
   test_tags="$test_tags,faster_joins"
 fi
 
+
+if [[ -n "$SYNAPSE_TEST_LOG_LEVEL" ]]; then
+  # Set the log level to what is desired
+  export PASS_SYNAPSE_LOG_LEVEL="$SYNAPSE_TEST_LOG_LEVEL"
+
+  # Allow logging sensitive things (currently SQL queries & parameters).
+  # (This won't have any effect if we're not logging at DEBUG level overall.)
+  # Since this is just a test suite, this is fine and won't reveal anyone's
+  # personal information
+  export PASS_SYNAPSE_LOG_SENSITIVE=1
+fi
+
 # Run the tests!
 echo "Images built; running complement"
 cd "$COMPLEMENT_DIR"