Skip to content

Commit

Permalink
Add donID to logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mjk90 committed Nov 12, 2024
1 parent 26a9fac commit 70c89d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/services/llo/delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type DelegateConfig struct {
}

func NewDelegate(cfg DelegateConfig) (job.ServiceCtx, error) {
lggr := logger.Sugared(cfg.Logger).With("jobName", cfg.JobName.ValueOrZero())
lggr := logger.Sugared(cfg.Logger).With("jobName", cfg.JobName.ValueOrZero(), "donID", cfg.DonID)
if cfg.DataSource == nil {
return nil, errors.New("DataSource must not be nil")
}
Expand Down Expand Up @@ -111,7 +111,7 @@ func (d *delegate) Start(ctx context.Context) error {
return fmt.Errorf("expected either 1 or 2 ContractConfigTrackers, got: %d", len(d.cfg.ContractConfigTrackers))
}

d.cfg.Logger.Debugw("Starting LLO job", "instances", len(d.cfg.ContractConfigTrackers), "jobName", d.cfg.JobName.ValueOrZero(), "captureEATelemetry", d.cfg.CaptureEATelemetry)
d.cfg.Logger.Debugw("Starting LLO job", "instances", len(d.cfg.ContractConfigTrackers), "jobName", d.cfg.JobName.ValueOrZero(), "captureEATelemetry", d.cfg.CaptureEATelemetry, "donID", d.cfg.DonID)

var merr error

Expand Down

0 comments on commit 70c89d3

Please sign in to comment.