diff --git a/core/services/gateway/connectionmanager.go b/core/services/gateway/connectionmanager.go index 86660f03dc9..961212239f2 100644 --- a/core/services/gateway/connectionmanager.go +++ b/core/services/gateway/connectionmanager.go @@ -96,7 +96,7 @@ func NewConnectionManager(gwConfig *config.GatewayConfig, clock utils.Clock, lgg codec: codec, nodes: nodes, shutdownCh: make(chan struct{}), - lggr: lggr, + lggr: lggr.Named("DONConnectionManager." + donConfig.DonId), } } connMgr := &connectionManager{ diff --git a/core/services/gateway/connector/connector.go b/core/services/gateway/connector/connector.go index 1cd1995e3a4..ca0a45e98c8 100644 --- a/core/services/gateway/connector/connector.go +++ b/core/services/gateway/connector/connector.go @@ -85,7 +85,7 @@ func NewGatewayConnector(config *ConnectorConfig, signer Signer, handler Gateway signer: signer, handler: handler, shutdownCh: make(chan struct{}), - lggr: lggr, + lggr: lggr.Named("GatewayConnector"), } gateways := make(map[string]*gatewayState) urlToId := make(map[string]string) diff --git a/core/services/gateway/handlers/functions/handler.functions.go b/core/services/gateway/handlers/functions/handler.functions.go index aee099e6cee..4ef6ab72fb2 100644 --- a/core/services/gateway/handlers/functions/handler.functions.go +++ b/core/services/gateway/handlers/functions/handler.functions.go @@ -57,6 +57,7 @@ func NewFunctionsHandlerFromConfig(handlerConfig json.RawMessage, donConfig *con if err != nil { return nil, err } + lggr = lggr.Named("FunctionsHandler:" + donConfig.DonId) var allowlist OnchainAllowlist if cfg.OnchainAllowlist != nil { chain, err2 := legacyChains.Get(cfg.OnchainAllowlistChainID) diff --git a/core/services/gateway/handlers/handler.dummy.go b/core/services/gateway/handlers/handler.dummy.go index 7615c734d8d..9cdd0865606 100644 --- a/core/services/gateway/handlers/handler.dummy.go +++ b/core/services/gateway/handlers/handler.dummy.go @@ -32,7 +32,7 @@ func NewDummyHandler(donConfig *config.DONConfig, don DON, lggr logger.Logger) ( donConfig: donConfig, don: don, savedCallbacks: make(map[string]*savedCallback), - lggr: lggr, + lggr: lggr.Named("DummyHandler." + donConfig.DonId), }, nil }