mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 14:04:55 -04:00
Improve logging when generating config files (#5510)
Make it a bit clearer what's going on.
This commit is contained in:
parent
5d6644efe0
commit
37933a3bf8
4 changed files with 8 additions and 1 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue