From b652f3e66627f673ceebfa3ad3c7e5260a812610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BE=84=E6=BD=AD?= Date: Tue, 20 Feb 2024 17:01:39 +0800 Subject: [PATCH] optimize: add klog for debuging requests with apiserver (#830) --- cmd/higress/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/higress/main.go b/cmd/higress/main.go index 3c78b8991..14bc91eb1 100644 --- a/cmd/higress/main.go +++ b/cmd/higress/main.go @@ -18,10 +18,13 @@ import ( "fmt" "os" + "istio.io/pkg/log" + "github.com/alibaba/higress/pkg/cmd" ) func main() { + log.EnableKlogWithCobra() if err := cmd.GetRootCommand().Execute(); err != nil { _, _ = fmt.Fprintln(os.Stderr, err) os.Exit(1)