Fix logging error on SIGHUP (#14258)

This commit is contained in:
Richard van der Hoff 2022-10-21 16:03:44 +01:00 committed by GitHub
parent 1433b5d5b6
commit d24346f530
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

2
changelog.d/14258.bugfix Normal file
View file

@ -0,0 +1,2 @@
Fix a bug introduced in Synapse 1.60.0 which caused an error to be logged when Synapse received a SIGHUP signal, and debug logging was enabled.

View file

@ -558,7 +558,7 @@ def reload_cache_config(config: HomeServerConfig) -> None:
logger.warning(f) logger.warning(f)
else: else:
logger.debug( logger.debug(
"New cache config. Was:\n %s\nNow:\n", "New cache config. Was:\n %s\nNow:\n %s",
previous_cache_config.__dict__, previous_cache_config.__dict__,
config.caches.__dict__, config.caches.__dict__,
) )