Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
log *after* reloading log config
Browse files Browse the repository at this point in the history
... because logging *before* reloading means the log message gets lost in the old MemoryLogger
  • Loading branch information
richvdh committed Aug 10, 2018
1 parent b37c472 commit c08f9d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions synapse/config/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,8 @@ def load_log_config():

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()

Expand Down

0 comments on commit c08f9d9

Please sign in to comment.