server: make sure that the various replication loggers use consistent logging (#8745)

This commit is contained in:
R.B. Boyer 2020-09-24 15:49:38 -05:00 committed by GitHub
parent d23851a9a7
commit 45609fccdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

3
.changelog/8745.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:improvement
server: make sure that the various replication loggers use consistent logging
```

View File

@ -421,11 +421,11 @@ func NewServer(config *Config, flat Deps) (*Server, error) {
srv: s,
gatewayLocator: s.gatewayLocator,
},
Logger: s.logger,
Logger: s.loggers.Named(logging.Replication).Named(logging.FederationState),
},
Rate: s.config.FederationStateReplicationRate,
Burst: s.config.FederationStateReplicationBurst,
Logger: logger,
Logger: s.logger,
SuppressErrorLog: isErrFederationStatesNotSupported,
}
s.federationStateReplicator, err = NewReplicator(&federationStateReplicatorConfig)