Skip to content

Commit 42dc342

Browse files
Lint
1 parent 3d9133f commit 42dc342

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
@@ -190,7 +190,11 @@ func (gn *graphNode) execute(ctx context.Context, rs *runState) (err error) {
190190
}
191191

192192
if len(errors) > 0 {
193-
gn.logger.Debugf("task %s has binding errors: %s", gn.task.Name(), strings.Join(errors, ", "))
193+
gn.logger.Debugf(
194+
"task %s has binding errors: %s",
195+
gn.task.Name(),
196+
strings.Join(errors, ", "),
197+
)
194198
}
195199

196200
for _, dependent := range gn.dependents {
@@ -431,6 +435,7 @@ func (g *graph) Graphviz(includeInputs bool) string {
431435
return buf.String()
432436
}
433437

438+
// Logger logger interface for the graph.
434439
type Logger interface {
435440
Debugf(format string, args ...interface{})
436441
}
@@ -466,6 +471,7 @@ func WithTracer(tracer trace.Tracer) GraphOption {
466471
}
467472
}
468473

474+
// WithLogger sets a logger for the graph.
469475
func WithLogger(logger Logger) GraphOption {
470476
return func(opts *graphOptions) error {
471477
opts.logger = logger

0 commit comments

Comments
 (0)