log operations in debug. Precursor to more readable operation logging at the cue layer

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
Solomon Hykes 2021-05-04 17:55:42 +00:00
parent ca6930bd02
commit d3f3799976

View File

@ -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)