Fix leaking basis log lines

This commit is contained in:
Paul Hinze 2022-04-06 11:17:21 -05:00
parent cfe4e71a42
commit ae58d787a0
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

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