From fc19232f3197c13157ba17f932743c476de95e77 Mon Sep 17 00:00:00 2001 From: cz4rny Date: Wed, 15 Jun 2022 08:56:35 +0200 Subject: [PATCH] Proper warning logging --- gradle/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/build.go b/gradle/build.go index bca0a53..3b703f9 100644 --- a/gradle/build.go +++ b/gradle/build.go @@ -98,7 +98,7 @@ func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error) { return libcnb.BuildResult{}, fmt.Errorf("unable to stat %s\n%w", command, err) } else { if err := os.Chmod(command, 0755); err != nil { - fmt.Printf("WARNING: unable to chmod %s:\n%s", command, err) + b.Logger.Bodyf("WARNING: unable to chmod %s:\n%s", command, err) } }