From 39799adfb2cfd521e6b1436af4e13cb954507312 Mon Sep 17 00:00:00 2001 From: Giulio Date: Wed, 28 Aug 2024 13:41:32 +0200 Subject: [PATCH 1/2] update Signed-off-by: Giulio --- cmd/helm/helm.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/helm/helm.go b/cmd/helm/helm.go index 553da5098..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" @@ -45,7 +46,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 31a1252b1ce36653aa869a1b71c38d0dea89f99d Mon Sep 17 00:00:00 2001 From: Giulio Date: Thu, 29 Aug 2024 10:49:34 +0200 Subject: [PATCH 2/2] remove utc Signed-off-by: Giulio --- cmd/helm/helm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/helm/helm.go b/cmd/helm/helm.go index 38746e832..2fae7cddb 100644 --- a/cmd/helm/helm.go +++ b/cmd/helm/helm.go @@ -46,7 +46,7 @@ func init() { func debug(format string, v ...interface{}) { if settings.Debug { - timeNow := time.Now().UTC().String() + timeNow := time.Now().String() format = fmt.Sprintf("%s [debug] %s\n", timeNow, format) log.Output(2, fmt.Sprintf(format, v...)) }