From 0064f1936e2482b00d598a259b67bef896335a5b Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" Date: Thu, 24 Sep 2020 15:49:38 -0500 Subject: [PATCH] server: make sure that the various replication loggers use consistent logging (#8745) --- .changelog/8745.txt | 3 +++ agent/consul/server.go | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .changelog/8745.txt 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)