mirror of https://github.com/helm/helm.git
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>
This commit is contained in:
parent
e7eedae97c
commit
7f02e89a7a
|
@ -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…
Reference in New Issue