From e70d271e9358a5b5a87c9e76a21cbf914d45ed11 Mon Sep 17 00:00:00 2001 From: Chirag S Date: Wed, 18 Feb 2026 10:56:51 +0530 Subject: [PATCH] feat: [CI-18951]: added a log when harness fallback is used --- docker.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker.go b/docker.go index e29ad5d..c1e7eff 100644 --- a/docker.go +++ b/docker.go @@ -612,7 +612,11 @@ func getProxyValue(key string) string { return value } - return os.Getenv("HARNESS_" + strings.ToUpper(key)) + harnessValue := os.Getenv("HARNESS_" + strings.ToUpper(key)) + if len(harnessValue) > 0 { + fmt.Printf("Using HARNESS_%s as proxy value for %s\n", strings.ToUpper(key), key) + } + return harnessValue } // helper function that looks to see if a proxy value was set in the build args.