From 202e2345fa72c2673b2e51e8e614ddd287cdbcc7 Mon Sep 17 00:00:00 2001 From: Giulio Calzolari <9049490+giuliocalzolari@users.noreply.github.com> Date: Wed, 28 Aug 2024 13:28:26 +0200 Subject: [PATCH 1/2] Update helm.go Signed-off-by: Giulio Calzolari <9049490+giuliocalzolari@users.noreply.github.com> --- cmd/helm/helm.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/helm/helm.go b/cmd/helm/helm.go index 553da5098..687553481 100644 --- a/cmd/helm/helm.go +++ b/cmd/helm/helm.go @@ -45,7 +45,8 @@ func init() { func debug(format string, v ...interface{}) { if settings.Debug { - format = fmt.Sprintf("[debug] %s\n", format) + timeNow := time.Now().UTC().String() + format = fmt.Sprintf("%s [debug] %s\n", timeNow, format) log.Output(2, fmt.Sprintf(format, v...)) } } From e7a6d1a8eb326dcac0799752cc94e45ff4c2339c Mon Sep 17 00:00:00 2001 From: Giulio Calzolari <9049490+giuliocalzolari@users.noreply.github.com> Date: Wed, 28 Aug 2024 13:30:40 +0200 Subject: [PATCH 2/2] Update helm.go --- cmd/helm/helm.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/helm/helm.go b/cmd/helm/helm.go index 687553481..38746e832 100644 --- a/cmd/helm/helm.go +++ b/cmd/helm/helm.go @@ -22,6 +22,7 @@ import ( "log" "os" "strings" + "time" "github.com/spf13/cobra" "sigs.k8s.io/yaml"