From d3f379997696d30e5c23d19424f01a15e5afe735 Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Tue, 4 May 2021 17:55:42 +0000 Subject: [PATCH] log operations in debug. Precursor to more readable operation logging at the cue layer Signed-off-by: Solomon Hykes --- dagger/pipeline.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dagger/pipeline.go b/dagger/pipeline.go index 8c05ac37..27df448d 100644 --- a/dagger/pipeline.go +++ b/dagger/pipeline.go @@ -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)