Skip to content

Commit fb56365

Browse files
Lint
1 parent d5a66d4 commit fb56365

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

graph.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,11 @@ func (gn *graphNode) execute(ctx context.Context, rs *runState) (err error) {
202202
}
203203

204204
if len(errors) > 0 {
205-
gn.logger.Debugf("task %s has binding errors: %s", gn.task.Name(), strings.Join(errors, ", "))
205+
gn.logger.Debugf(
206+
"task %s has binding errors: %s",
207+
gn.task.Name(),
208+
strings.Join(errors, ", "),
209+
)
206210
}
207211

208212
for _, dependent := range gn.dependents {
@@ -443,6 +447,7 @@ func (g *graph) Graphviz(includeInputs bool) string {
443447
return buf.String()
444448
}
445449

450+
// Logger logger interface for the graph.
446451
type Logger interface {
447452
Debugf(format string, args ...interface{})
448453
}
@@ -478,6 +483,7 @@ func WithTracer(tracer trace.Tracer) GraphOption {
478483
}
479484
}
480485

486+
// WithLogger sets a logger for the graph.
481487
func WithLogger(logger Logger) GraphOption {
482488
return func(opts *graphOptions) error {
483489
opts.logger = logger

0 commit comments

Comments
 (0)