summary refs log tree commit diff
path: root/debian/build_virtualenv
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-01-03 17:14:00 +0000
committerGitHub <noreply@github.com>2020-01-03 17:14:00 +0000
commit08815566bca79d001ad1bf58b2b082e435b6e5df (patch)
treec60e93d4dddc4431c5cd4e2bf4d6ff9d5a9ef5dc /debian/build_virtualenv
parentRaise an error if someone tries to use the log_file config option (#6626) (diff)
downloadsynapse-08815566bca79d001ad1bf58b2b082e435b6e5df.tar.xz
Automate generation of the sample and debian log configs (#6627)
Diffstat (limited to 'debian/build_virtualenv')
-rwxr-xr-xdebian/build_virtualenv3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/build_virtualenv b/debian/build_virtualenv
index 2791896052..d892fd5c9d 100755
--- a/debian/build_virtualenv
+++ b/debian/build_virtualenv
@@ -85,6 +85,9 @@ PYTHONPATH="$tmpdir" \
 
 ' > "${PACKAGE_BUILD_DIR}/etc/matrix-synapse/homeserver.yaml"
 
+# build the log config file
+"${TARGET_PYTHON}" -B "${VIRTUALENV_DIR}/bin/generate_log_config" \
+        --output-file="${PACKAGE_BUILD_DIR}/etc/matrix-synapse/log.yaml"
 
 # add a dependency on the right version of python to substvars.
 PYPKG=`basename $SNAKE`