diff --git a/core/services/relay/evm/llo/config_poller.go b/core/services/relay/evm/llo/config_poller.go index 1f328ab73c3..42cd6646a79 100644 --- a/core/services/relay/evm/llo/config_poller.go +++ b/core/services/relay/evm/llo/config_poller.go @@ -106,6 +106,8 @@ func newConfigPoller(lggr logger.Logger, lp LogPoller, cc ConfigCache, addr comm Name: "LLOConfigPoller", }.NewServiceEngine(logger.Sugared(lggr).Named(string(instanceType)).With("instanceType", instanceType)) + lggr.Debugw("TRASH New ConfigPoller", "donID", donID, "addr", addr, "instanceType", instanceType, "fromBlock", fromBlock) + return cp } @@ -144,6 +146,7 @@ func (cp *configPoller) latestConfig(ctx context.Context, fromBlock, toBlock int } switch log.EventSig { case ProductionConfigSet: + cp.eng.SugaredLogger.Debugw("TRASH ProductionConfigSet", "log", log, "instanceType", cp.instanceType) event, err := DecodeProductionConfigSetLog(log.Data) if err != nil { return latestConfig, log, fmt.Errorf("failed to unpack ProductionConfigSet log data: %w", err) @@ -154,6 +157,7 @@ func (cp *configPoller) latestConfig(ctx context.Context, fromBlock, toBlock int } isProduction := (cp.instanceType != InstanceTypeBlue) == event.IsGreenProduction + cp.eng.SugaredLogger.Debugw("TRASH ProductionConfigSet", "isProduction", isProduction, "instanceType", cp.instanceType, "event.IsGreenProduction", event.IsGreenProduction) if isProduction { latestLog = log latestConfig, err = FullConfigFromProductionConfigSet(event) @@ -162,6 +166,7 @@ func (cp *configPoller) latestConfig(ctx context.Context, fromBlock, toBlock int } } case StagingConfigSet: + cp.eng.SugaredLogger.Debugw("TRASH StagingConfigSet", "log", log, "instanceType", cp.instanceType) event, err := DecodeStagingConfigSetLog(log.Data) if err != nil { return latestConfig, latestLog, fmt.Errorf("failed to unpack ProductionConfigSet log data: %w", err) @@ -172,6 +177,7 @@ func (cp *configPoller) latestConfig(ctx context.Context, fromBlock, toBlock int } isProduction := (cp.instanceType != InstanceTypeBlue) == event.IsGreenProduction + cp.eng.SugaredLogger.Debugw("TRASH StagingConfigSet", "isProduction", isProduction, "instanceType", cp.instanceType, "event.IsGreenProduction", event.IsGreenProduction) if !isProduction { latestLog = log latestConfig, err = FullConfigFromStagingConfigSet(event) @@ -194,6 +200,9 @@ func (cp *configPoller) LatestConfig(ctx context.Context, changedInBlock uint64) if err != nil { return ocrtypes.ContractConfig{}, fmt.Errorf("failed to get latest config: %w", err) } + if cfg.donID > 0 { + cp.eng.SugaredLogger.Debugw("TRASH returning config", "cfg", cfg, "instanceType", cp.instanceType, "donID", cfg.donID) + } return cfg.ContractConfig, nil } diff --git a/core/services/relay/evm/llo_provider.go b/core/services/relay/evm/llo_provider.go index ab7cac6da0c..e1d50c3d5d6 100644 --- a/core/services/relay/evm/llo_provider.go +++ b/core/services/relay/evm/llo_provider.go @@ -161,6 +161,7 @@ func (p *lloProvider) ContractConfigTrackers() (cps []ocrtypes.ContractConfigTra for i, cp := range p.cps { cps[i] = cp } + p.eng.SugaredLogger.Debugw("TRASH ContractConfigTrackers", "cps", cps) return }