mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-08 11:01:53 +00:00
log *after* reloading log config
... because logging *before* reloading means the log message gets lost in the old MemoryLogger
This commit is contained in:
parent
b37c472419
commit
c08f9d95b2
@ -193,9 +193,8 @@ def setup_logging(config, use_worker_options=False):
|
|||||||
|
|
||||||
def sighup(signum, stack):
|
def sighup(signum, stack):
|
||||||
# it might be better to use a file watcher or something for this.
|
# 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()
|
load_log_config()
|
||||||
|
logging.info("Reloaded log config from %s due to SIGHUP", log_config)
|
||||||
|
|
||||||
load_log_config()
|
load_log_config()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user