Skip to content

Commit

Permalink
log operations in debug. Precursor to more readable operation logging…
Browse files Browse the repository at this point in the history
… at the cue layer

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
  • Loading branch information
shykes committed May 12, 2021
1 parent ca6930b commit d3f3799
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dagger/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ func (p *Pipeline) doOp(ctx context.Context, op *compiler.Value, st llb.State) (
if err != nil {
return st, err
}
// FIXME: make this more readable then promote to INFO
// we need a readable trace of what operations are executed.
log.
Ctx(ctx).
Debug().
Str("pipeline", p.name).
Str("do", do).
Msg("executing operation")
switch do {
case "copy":
return p.Copy(ctx, op, st)
Expand Down

0 comments on commit d3f3799

Please sign in to comment.