added debug message

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones 2021-12-16 14:39:34 -07:00
parent f50311de35
commit eebbfcb258
No known key found for this signature in database
GPG Key ID: CFB3A382EB166F4C

View File

@ -4,6 +4,7 @@ import (
"context" "context"
"github.com/moby/buildkit/client/llb" "github.com/moby/buildkit/client/llb"
"github.com/rs/zerolog/log"
"go.dagger.io/dagger/compiler" "go.dagger.io/dagger/compiler"
"go.dagger.io/dagger/plancontext" "go.dagger.io/dagger/plancontext"
"go.dagger.io/dagger/solver" "go.dagger.io/dagger/solver"
@ -27,6 +28,8 @@ func (c localDirectoryTask) Run(ctx context.Context, pctx *plancontext.Context,
return nil, err return nil, err
} }
lg := log.Ctx(ctx)
lg.Debug().Str("path", dir.Path).Msg("loading local directory")
opts := []llb.LocalOption{ opts := []llb.LocalOption{
withCustomName(v, "Local %s", dir.Path), withCustomName(v, "Local %s", dir.Path),
// Without hint, multiple `llb.Local` operations on the // Without hint, multiple `llb.Local` operations on the