From 229d5e9c2434f434178dd47f7aed2cccb9dc7771 Mon Sep 17 00:00:00 2001 From: Guinevere Saenger Date: Fri, 20 Jan 2023 11:18:10 -0800 Subject: [PATCH] Set Warning to write to persistent logs --- provider/image.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provider/image.go b/provider/image.go index cd8f0b87..3bec5cc3 100644 --- a/provider/image.go +++ b/provider/image.go @@ -188,14 +188,14 @@ func (p *dockerNativeProvider) dockerBuild(ctx context.Context, // send warning if user is attempting to use in-program credentials if img.Registry.Username == "" && img.Registry.Password != "" { msg := "username was not set, although password was; using host credentials file" - err = p.host.LogStatus(ctx, "warning", urn, msg) + err = p.host.Log(ctx, "warning", urn, msg) if err != nil { return "", nil, err } } if img.Registry.Password == "" && img.Registry.Username != "" { msg := "password was not set, although username was; using host credentials file" - err = p.host.LogStatus(ctx, "warning", urn, msg) + err = p.host.Log(ctx, "warning", urn, msg) if err != nil { return "", nil, err }