summary refs log tree commit diff
path: root/docker/start.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-06-25 14:59:02 +0100
committerRichard van der Hoff <richard@matrix.org>2019-06-26 15:31:19 +0100
commita1732bbff995345e6b6bd79823bb5309038bbe56 (patch)
tree3cfe3a14408ae9707d3af1ceff97b655cd258531 /docker/start.py
parentchangelog (diff)
downloadsynapse-a1732bbff995345e6b6bd79823bb5309038bbe56.tar.xz
improve logging for generate_config_from_template
Diffstat (limited to 'docker/start.py')
-rwxr-xr-xdocker/start.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/start.py b/docker/start.py
index bdb703aebd..9ca139c3ea 100755
--- a/docker/start.py
+++ b/docker/start.py
@@ -67,10 +67,11 @@ def generate_config_from_template(environ, ownership):
             # generate a new secret and write it to a file
 
             if os.path.exists(filename):
+                log("Reading %s from %s" % (secret, filename))
                 with open(filename) as handle:
                     value = handle.read()
             else:
-                log("Generating a random secret for {}".format(name))
+                log("Generating a random secret for {}".format(secret))
                 value = codecs.encode(os.urandom(32), "hex").decode()
                 with open(filename, "w") as handle:
                     handle.write(value)