From ae58d787a05b9471af579cb7d0727d2a085e125d Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Wed, 6 Apr 2022 11:17:21 -0500 Subject: [PATCH] Fix leaking basis log lines --- internal/core/basis.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/core/basis.go b/internal/core/basis.go index 12e8dabc8..80fc60519 100644 --- a/internal/core/basis.go +++ b/internal/core/basis.go @@ -92,6 +92,9 @@ func NewBasis(ctx context.Context, opts ...BasisOption) (b *Basis, err error) { } else { b.logger = b.logger.ResetNamed("vagrant.core.basis") } + // Whatever the logger ended up being named, chain the coreplugins logger + // off of that + b.corePlugins.logger = b.logger.Named("coreplugins") if b.basis == nil { return nil, fmt.Errorf("basis data was not properly loaded")