summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-08-10 14:56:48 +0100
committerRichard van der Hoff <richard@matrix.org>2018-08-10 14:56:48 +0100
commitc08f9d95b2051c6998a234e4e28e621c174b9a0e (patch)
treee7a000a2493b7cc891ab5945f32331dd459519e2 /synapse/config
parentRename async to async_helpers because `async` is a keyword on Python 3.7 (#3678) (diff)
downloadsynapse-c08f9d95b2051c6998a234e4e28e621c174b9a0e.tar.xz
log *after* reloading log config
... because logging *before* reloading means the log message gets lost in the old MemoryLogger
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/logger.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/config/logger.py b/synapse/config/logger.py
index a87b11a1df..cfc20dcccf 100644
--- a/synapse/config/logger.py
+++ b/synapse/config/logger.py
@@ -193,9 +193,8 @@ def setup_logging(config, use_worker_options=False):
 
         def sighup(signum, stack):
             # it might be better to use a file watcher or something for this.
-            logging.info("Reloading log config from %s due to SIGHUP",
-                         log_config)
             load_log_config()
+            logging.info("Reloaded log config from %s due to SIGHUP", log_config)
 
         load_log_config()