From 7f02e89a7a3c88120c424f46471dd11ac9650db5 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Thu, 10 Apr 2025 16:12:52 +0200 Subject: [PATCH] No longer log call location using flag, it will need to be done in slog Some ideas here: https://www.reddit.com/r/golang/comments/15nwnkl/achieve_lshortfile_with_slog/ Signed-off-by: Benoit Tigeot --- cmd/helm/helm.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/helm/helm.go b/cmd/helm/helm.go index 273ead226..eefce5158 100644 --- a/cmd/helm/helm.go +++ b/cmd/helm/helm.go @@ -17,7 +17,6 @@ limitations under the License. package main // import "helm.sh/helm/v4/cmd/helm" import ( - "log" "log/slog" "os" @@ -28,10 +27,6 @@ import ( "helm.sh/helm/v4/pkg/kube" ) -func init() { - log.SetFlags(log.Lshortfile) -} - func main() { // Setting the name of the app for managedFields in the Kubernetes client. // It is set here to the full name of "helm" so that renaming of helm to