summary refs log tree commit diff
path: root/synapse/config/logger.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-06-21 17:14:56 +0100
committerGitHub <noreply@github.com>2019-06-21 17:14:56 +0100
commit37933a3bf88b6ddf0a01cb4b86e8645aca93ae0f (patch)
tree3dceb2d7c252d229b7a5d12f06b495850feb5673 /synapse/config/logger.py
parentOnly import jinja2 when needed (#5514) (diff)
downloadsynapse-37933a3bf88b6ddf0a01cb4b86e8645aca93ae0f.tar.xz
Improve logging when generating config files (#5510)
Make it a bit clearer what's going on.
Diffstat (limited to 'synapse/config/logger.py')
-rw-r--r--synapse/config/logger.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/config/logger.py b/synapse/config/logger.py
index a22655b125..9db2e087e4 100644
--- a/synapse/config/logger.py
+++ b/synapse/config/logger.py
@@ -137,6 +137,10 @@ class LoggingConfig(Config):
         log_config = config.get("log_config")
         if log_config and not os.path.exists(log_config):
             log_file = self.abspath("homeserver.log")
+            print(
+                "Generating log config file %s which will log to %s"
+                % (log_config, log_file)
+            )
             with open(log_config, "w") as log_config_file:
                 log_config_file.write(DEFAULT_LOG_CONFIG.substitute(log_file=log_file))