diff --git a/.changelog/8745.txt b/.changelog/8745.txt new file mode 100644 index 0000000000..afbc844322 --- /dev/null +++ b/.changelog/8745.txt @@ -0,0 +1,3 @@ +```release-note:improvement +server: make sure that the various replication loggers use consistent logging +``` diff --git a/agent/consul/server.go b/agent/consul/server.go index 85393ac1ca..a478d0c396 100644 --- a/agent/consul/server.go +++ b/agent/consul/server.go @@ -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)