Log mutator phase at info level (#272)

This commit is contained in:
Pieter Noordhuis 2023-03-22 17:02:22 +01:00 committed by GitHub
parent 123a5e15e9
commit edd8630f71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import (
"context"
"github.com/databricks/bricks/bundle"
"github.com/databricks/bricks/libs/log"
)
// This phase type groups mutators that belong to a lifecycle phase.
@ -25,6 +26,7 @@ func (p *phase) Name() string {
return p.name
}
func (p *phase) Apply(context.Context, *bundle.Bundle) ([]bundle.Mutator, error) {
func (p *phase) Apply(ctx context.Context, b *bundle.Bundle) ([]bundle.Mutator, error) {
log.Infof(ctx, "Phase: %s", p.Name())
return p.mutators, nil
}