Skip to content

Commit

Permalink
Add more logging, fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
mszostok committed Feb 13, 2022
1 parent 7c8a5e4 commit 86f0be8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/sdk/renderer/argo/dedicated_renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1004,13 +1004,15 @@ func (r *dedicatedRenderer) addOutputTypeInstancesToGraph(step *WorkflowStep, pr
return errors.Wrapf(err, "while resolving backend alias for %s", step.Name)
}

log := r.log.With(zap.String("artifactName", *artifactName))
log.Debug("Available TypeInstance Backend", zap.Any("backends", backends.GetAll()))

backend, err := r.selectBackend(backendAlias, typeRef, backends)
if err != nil {
return errors.Wrapf(err, "while resolving backend ID for %s", step.Name)
return errors.Wrapf(err, "while resolving backend ID for %s", name)
}

log := r.log.With(zap.String("artifactName", *artifactName))
log.Debug("Selected TypeInstance Backend", zap.Any("backend", backend), zap.Any("backends", backends.GetAll()))
log.Debug("Selected TypeInstance Backend", zap.Any("backend", backend))

// add output
r.typeInstancesToOutput.typeInstances = append(r.typeInstancesToOutput.typeInstances, OutputTypeInstance{
Expand Down

0 comments on commit 86f0be8

Please sign in to comment.