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 <benoit.tigeot@lifen.fr>
pull/30708/head
Benoit Tigeot 5 months ago
parent e7eedae97c
commit 7f02e89a7a
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C

@ -17,7 +17,6 @@ limitations under the License.
package main // import "helm.sh/helm/v4/cmd/helm" package main // import "helm.sh/helm/v4/cmd/helm"
import ( import (
"log"
"log/slog" "log/slog"
"os" "os"
@ -28,10 +27,6 @@ import (
"helm.sh/helm/v4/pkg/kube" "helm.sh/helm/v4/pkg/kube"
) )
func init() {
log.SetFlags(log.Lshortfile)
}
func main() { func main() {
// Setting the name of the app for managedFields in the Kubernetes client. // 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 // It is set here to the full name of "helm" so that renaming of helm to

Loading…
Cancel
Save